diff --git a/.github/workflows/generate-doc-bundles.yml b/.github/workflows/generate-doc-bundles.yml index 321bc03aba7..e0b82460674 100644 --- a/.github/workflows/generate-doc-bundles.yml +++ b/.github/workflows/generate-doc-bundles.yml @@ -24,6 +24,10 @@ jobs: sources: - "docs/tutorials/**/*.md" - "docs/nodes/**/*.md" + - name: "tutorial" + sources: + - "docs/tutorials/keplr-1.mdx" + - "docs/tutorials/cli-1.mdx" steps: - name: Check out repository uses: actions/checkout@v4 @@ -50,8 +54,8 @@ jobs: import frontmatter import justext - sources = json.loads(os.environ["SOURCES"]) - output_filename = f"{os.environ["BUNDLE"]}-bundle.md" + sources = json.loads(os.environ['SOURCES']) + output_filename = f"{os.environ['BUNDLE']}-bundle.md" print(f"⚡️ Generating {output_filename}") with open(output_filename, "a") as output_file: @@ -63,11 +67,11 @@ jobs: print(f"🔁 merging {file_path}") with open(file_path, "r") as input_file: _, content = frontmatter.parse(input_file.read()) + paragraphs = justext.justext(content, justext.get_stoplist("English")) for paragraph in paragraphs: - if not paragraph.is_boilerplate: - output_file.write(paragraph.text) - output_file.write("\n") + output_file.write(paragraph.text) + output_file.write("\n") output_file.write("\n") print(f"📦 bundle {output_filename} generated")