Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleaner conversion of rST files #41

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

drammock
Copy link
Member

@drammock drammock commented May 21, 2022

This is an alternative approach to #33 to converting conventions.rst into HTML. It uses rst2html5 to do the conversion, plus a small python post-processor script to force the highest HTML heading level to be h2 (to match the other pages on phoible.org). A Makefile recipe is provided to chain these operations.

currently it only writes the body content, which I think will make it easier to integrate into the main phoible.org webapp, at the expense of generating something pretty for phoible.github.io (which is slated to become a redirect to phoible.org anyway). It's possible to change _template.html to include html, head etc: see b3e31e9 for an example.

TODO:

  • do similar cleanup with the FAQ page processing (e.g., add a recipe for it to the Makefile; don't depend on presence of RStudio)
  • coordinate with @xrotwang to get this into the right place within https://github.com/clld/phoible

closes #33

@drammock drammock mentioned this pull request May 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant