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

Need to describe plugins and extensions + emphasize local mkdocs testing #172

Open
felker opened this issue Mar 2, 2023 · 0 comments
Open

Comments

@felker
Copy link
Member

felker commented Mar 2, 2023

We are installing and enabling a lot of nice markup extensions, etc:

  features:
    - tabs
    - instant
    - search.highlight
    - search.suggest
...
markdown_extensions:
  - footnotes
  - admonition
  - codehilite
  - tables
  - attr_list
  - md_in_html
  - def_list
  - pymdownx.critic
  - pymdownx.inlinehilite
  - pymdownx.keys
  - pymdownx.caret
  - pymdownx.mark
  - pymdownx.tilde
  - pymdownx.snippets
  - pymdownx.superfences
  - pymdownx.details
  - pymdownx.inlinehilite
  - pymdownx.highlight:
      use_pygments: true
      anchor_linenums: true
  - pymdownx.tabbed:
      alternate_style: true
  - pymdownx.tasklist:
      custom_checkbox: true
...
plugins:
  - include-markdown
  - codeinclude:
      title_mode: pymdownx.tabbed
  - search:
      lang: en

But they are not widely used in our .md docs. Many of them (e.g. pymdownx.tabbed, footnotes, pymdownx.details, codeinclude) should be used more widely, since they improve readability a lot over vanilla Markdown:

We should maybe add a section to our README.md for contributors and authors that highlights some of the simple plugins, examples, and how to use them (and how to add new plugins to the repo?). Also following #144, we should doubly emphasize the importance of deploying and previewing Mkdocs locally instead of using a standalone Markdown GUI editor.

And emphasize that Mkdocs uses python-markdown which is non-CommonMark (Gruber Markdown syntax) and needs some configuration to look like GitHub Flavored Markdown: https://facelessuser.github.io/pymdown-extensions/faq/#github-ish-configurations

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