Conversation
Test Build PreviewGenerated from ArtifactsDownload the generated files from the workflow run: Single-file mode (test-output-single):
Multi-file mode (test-output-multi):
|
Test Build PreviewGenerated from ArtifactsDownload the generated files from the workflow run: Single-file mode (test-output-single):
Multi-file mode (test-output-multi):
|
Test Build PreviewGenerated from ArtifactsDownload the generated files from the workflow run: Single-file mode (test-output-single):
Combined mode (test-output-combined):
Collection mode - flat (test-output-collection-flat):
Collection mode - nested (test-output-collection-nested):
|
Test Build PreviewGenerated from ArtifactsDownload the generated files from the workflow run: Single-file mode (test-output-single):
Combined mode (test-output-combined):
Collection mode - flat (test-output-collection-flat):
Collection mode - nested (test-output-collection-nested):
|
Test Build PreviewGenerated from ArtifactsDownload the generated files from the workflow run: Single-file mode (test-output-single):
Combined mode (test-output-combined):
Collection mode - flat (test-output-collection-flat):
Collection mode - nested (test-output-collection-nested):
|
Test Build PreviewGenerated from ArtifactsDownload the generated files from the workflow run: Single-file mode (test-output-single):
Combined mode (test-output-combined):
Collection mode - flat (test-output-collection-flat):
Collection mode - nested (test-output-collection-nested):
|
Test Build PreviewGenerated from ArtifactsDownload the generated files from the workflow run: Single-file mode (test-output-single):
Combined mode (test-output-combined):
Collection mode - flat (test-output-collection-flat):
Collection mode - nested (test-output-collection-nested):
|
This pull request adds support for multi-file mode to the GitHub Action, allowing users to convert multiple Markdown files into a static site with HTML pages and a combined PDF. The workflow and documentation have been updated to support both single-file and multi-file publishing, including improvements to artifact naming and preview comments. The most important changes are grouped below.
Multi-file mode support:
sourcesinput toaction.ymlfor specifying multiple Markdown files or glob patterns; files are resolved and processed as a group. [1] [2]action.ymlfor generating a combined PDF, converting each Markdown file to HTML (preserving directory structure), and auto-generating an index page with a table of contents. [1] [2]filters/mdlinks-to-html.lua) to rewrite relative Markdown links to.htmlin the generated HTML, ensuring cross-file navigation works.Workflow and artifact improvements:
.github/workflows/test.ymlto add separate jobs for single-file and multi-file tests, with distinct artifact names and verification steps for multi-file output. [1] [2]Documentation updates:
README.mdandaction.ymldescriptions to explain the new multi-file mode, inputs, and output structure, including usage examples and behavior differences. [1] [2] [3]These changes make it possible to publish multiple Markdown documents as a static site and improve clarity and usability for both modes.