Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Current server mode is bit difficult to use because it requires to access file URL manually. This PR will provide served file list as the directory index. By accessing http://localhost:8080/, marp-cli shows the list of served markdown files.
Screenshot
Currently CLI provides the super-simple file list by using
serve-index
, but we can improve by our Pug template and SCSS.I'm going to add a checkbox whether to toggle showing served static files (non-markdown files) in another PR.
?pdf
query parameterThe improved server mode no longer recognize the conversion type option like
--pdf
. We always serve the deck as HTML by default.Instead, we recognize
?pdf
query parameter in accessed URL. You can execute the on-demand PDF conversion while serving HTML. The added directory index has the "PDF" link to trigger it.Default file (
index.md
orPITCHME.md
)As like as several web server, we recognize
index.md
as the default page of directory index. It means that you can see the slide deck by accessinghttp://localhost:8080/
ifindex.md
is placed into the served directory.If you are familiar to GitPitch, you can also place
PITCHME.md
to the directory.ToDo