diff options
| author | Paul Buetow <paul@buetow.org> | 2022-07-03 09:37:10 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2022-07-03 09:37:10 +0300 |
| commit | 022692152da3cda49dc11720a328afb787421e62 (patch) | |
| tree | e265f5f715bb48fd13b5e0ae2aacaf3e3d096b51 | |
| parent | 48e4ffe00e473629445ba52e93186dfa8f93c121 (diff) | |
update docs
| -rw-r--r-- | IDEA.md | 16 | ||||
| -rw-r--r-- | README.md | 11 |
2 files changed, 12 insertions, 15 deletions
@@ -1,10 +1,8 @@ # IDEAs -## Parallel job processing queue +## Templating -Currently, in order to speed up, Gemtexter forks on certain functions and loops and joins (via `wait`) on the sub-processes. This however can be a problem once a user max process limit is reached. - -Use s.t. like `pgrep -c -P$$` to determine how many sub-processes are already active and wait for new forks until a lower limit is reached. +Templating of .gmi files (e.g. insert %%TOC%% to Gemtext files as well). Could also template common .gmi page headers and footers. Could also insert bash code here. ## Also generate a PDF book @@ -12,7 +10,13 @@ I could use pandoc for this (convert from Markdown to PDF). This works on Fedora ``` sudo dnf install pandoc wkhtmltopdf -pandoc FOO.md --pdf-engine=wkhtmltopdf --output FOO.pdf +pandoc **/*.md --pdf-engine=wkhtmltopdf --output foo.zone.pdf ``` -The Texlive PDF Engine doesn't work due to missing fonts on Fedora, and there aren't any packages providing the missing fonts. +There will be some more scripting required to get the page order and ToC correct. + +## More ideas + +* Automatic ToC generation. +* Sitemap generation. +* More output formats. Gopher? Groff? Plain text? PDF via Pandoc? .sh with interactive menus? @@ -95,13 +95,6 @@ After running `./gemtexter --generate`, you will have all static files ready to Have also a look at the generated `atom.xml` files. They make sense (at least) for Gemtext and HTML. -It is up to you to set up a Gemini server for the Gemtext, a Webserver for the HTML or a GitHub page for the Markdown format (or both). - -# Future features +If you use git, you can use `./gemtexter --publish`, which does a `--generate` followed by a `--git-add` and a `--git-sync`. -I might or might not implement those: - -* Templating of .gmi files (e.g. insert %%TOC%% to Gemtext files as well). Could also template common .gmi page headers and footers. Could also insert bash code here. -* Automatic ToC generation. -* Sitemap generation. -* More output formats. Gopher? Groff? Plain text? PDF via Pandoc? .sh with interactive menus? +It is up to you to set up a Gemini server for the Gemtext, a Webserver for the HTML or a GitHub page for the Markdown format (or both). |
