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

generate mkdocs.yml #6

Open
charlesreid1 opened this issue May 15, 2018 · 2 comments
Open

generate mkdocs.yml #6

charlesreid1 opened this issue May 15, 2018 · 2 comments

Comments

@charlesreid1
Copy link
Owner

One of the problems we are having with page elements not being translated is not a markdown/pandoc issue, it's an mkdocs issue.

Specifically, when we generate russian-rainbow-mind-machine documentation we generate the Russian docs from the English docs. But the mkdocs.yml file for our Russian docs contains page titles that are still in English.

pages:
  - 'Home' : 'index.md'
  - 'How This Repo Is Organized' : 'organized.md'

We need to include a step to generate an mkdocs.yml file. This raises other issues about how we want this repository to be organized and how we want it to generate files. Need to think this through before jumping in.

@charlesreid1
Copy link
Owner Author

The user points to a docs/ folder as inputs, we generate a docs_translation/ folder as output. This step is documentation-agnostic, and just requires github-flavored markdown.

Option 1: Assume the user has or wants mkdocs. We load an existing mkdocs.yml for docs and we create a new mkdocs_translation.yml for docs_translation/. This literally gets the user a duplicate mkdocs site. (This is exactly what we want: the user runs one step and they're finished.)

Option 2: Don't assume anything about the user's documentation system. (More flexible, but also leaves the user with a pile of translated docs and no clear next steps.)

Option 3 (please kill me): deal with Sphinx stuff. This runs counter to the entire frickin point of the frickin project. The project is: "Here's a pile of Markdown. Here's a language. Gimme the frickin docs."

@charlesreid1
Copy link
Owner Author

Give the user an --mkdocs command line flag. If they have an mkdocs.yml file, this command line option will load it, translate the page titles, and deposit the new file in mkdocs_translation.file.

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

No branches or pull requests

1 participant