Skip to content

Commit

Permalink
upgrade marimo
Browse files Browse the repository at this point in the history
  • Loading branch information
Oreoxmt committed Dec 21, 2024
1 parent 8537760 commit 8b5afb6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
10 changes: 5 additions & 5 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ license = { text = "Apache-2.0" }
requires = ["pdm-backend"]
build-backend = "pdm.backend"

[dependency-groups]
dev = [
"pytest>=8.3.4",
]

[tool.pdm]
distribution = true

Expand All @@ -32,8 +37,3 @@ includes = ["src/tidocs/"]

[tool.pdm.version]
source = "scm"

[dependency-groups]
dev = [
"pytest>=8.3.4",
]
30 changes: 15 additions & 15 deletions src/tidocs/merge/main_marimo.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import marimo

__generated_with = "0.9.28"
__generated_with = "0.10.6"
app = marimo.App(app_title="TiDocs - Merge Release Notes")


@app.cell
def __():
def _():
import marimo as mo
return (mo,)


@app.cell
def __(mo):
def _(mo):
mo.md(
"""
# TiDocs: Merge Release Notes
Expand All @@ -23,13 +23,13 @@ def __(mo):


@app.cell
def __(upload_area):
def _(upload_area):
upload_area
return


@app.cell
def __(is_valid_filename, md_files, mo):
def _(is_valid_filename, md_files, mo):
for i in range(len(md_files.value)):
mo.stop(
not is_valid_filename(md_files.value[i].name),
Expand All @@ -43,13 +43,13 @@ def __(is_valid_filename, md_files, mo):


@app.cell
def __(config_area):
def _(config_area):
config_area
return


@app.cell
def __(merged_doc, mo):
def _(merged_doc, mo):
download_area = mo.vstack(
[
mo.md(f"""## {mo.icon('fluent:document-one-page-multiple-sparkle-24-regular')} 3. Generate Document
Expand All @@ -67,7 +67,7 @@ def __(merged_doc, mo):


@app.cell
def __(
def _(
abstract_input,
authors_input,
date_input,
Expand All @@ -86,7 +86,7 @@ def __(


@app.cell
def __(mo):
def _(mo):
md_files = mo.ui.file(
filetypes=[".md"],
multiple=True,
Expand All @@ -106,7 +106,7 @@ def __(mo):


@app.cell
def __(mo):
def _(mo):
config_area_title = mo.md(
f"""## {mo.icon('lucide:edit')} 2. Configure Document Information
Expand Down Expand Up @@ -165,7 +165,7 @@ def __(mo):


@app.cell
def __(
def _(
base_url_input,
extract_and_mark_html_tables,
md_files,
Expand Down Expand Up @@ -208,7 +208,7 @@ def extract_version(filename):


@app.cell
def __(Pandoc, get_reference_doc, md_contents, mo, table_contents):
def _(Pandoc, get_reference_doc, md_contents, mo, table_contents):
reference_doc = get_reference_doc()

pandoc = Pandoc()
Expand Down Expand Up @@ -264,7 +264,7 @@ def __(Pandoc, get_reference_doc, md_contents, mo, table_contents):


@app.cell
def __(md_doc_data, merge_documents, mo, table_doc_data):
def _(md_doc_data, merge_documents, mo, table_doc_data):
merged_doc_data = merge_documents(md_doc_data, table_doc_data)

merged_doc = mo.download(
Expand All @@ -276,7 +276,7 @@ def __(md_doc_data, merge_documents, mo, table_doc_data):


@app.cell
def __(mo):
def _(mo):
mo.md(f"""## {mo.icon('icon-park-outline:format')} 4. Post-process Document
After generating the Word document, follow these steps to finalize it:
Expand All @@ -298,7 +298,7 @@ def __(mo):


@app.cell
def __():
def _():
from tidocs.markdown_handler import (
generate_pandoc_metadata,
remove_front_matter,
Expand Down

0 comments on commit 8b5afb6

Please sign in to comment.