Small history, a little bit tired to maintain WordPress: Main concerns:
What finally got in fact: I can bring as many as i need markdown files. Using any IDE, also GitLab UI I have cheap virtual machine where is shell runner deployed due to memory constraints.
Project tree is straight forward: * README.md * .gitlab-ci.yml
You adding more md files
shell type
https://docs.gitlab.com/runner/register/
On the gitlab runner machine , prepare own python virtual environment
sudo -u gitlab-runner -i
python3 -m venv ~/venv-markdown
source ~/venv-markdown/bin/activate
pip install markdown
pages:
tags:
- blog-runner
script:
- source ~/venv-markdown/bin/activate
- mkdir -p public/
- ls *.md | xargs -I{} sh -c "python -m markdown -x tables -x fenced_code {} > public/{}.html"
- cd public/ ; ls *.md.html | xargs -I{} sh -c "echo '<a href={}>/{}</a></br>' >> index.html"
artifacts:
paths:
- public
please refer to Python markdown extensions In brief extensions are enabled by "-x"
python -m markdown -x tables -x fenced_code README.md > output.html