reactpy icon indicating copy to clipboard operation
reactpy copied to clipboard

Rewrite the docs

Open Archmonger opened this issue 2 years ago • 4 comments

Beta Docs Live Preview: https://reactive-python.github.io/reactpy/ Beta Docs Source Code: https://github.com/reactive-python/reactpy/tree/new-docs

Current Situation

It is difficult for new contributors to modify the docs, due to the current usage of reStructuredText (RST). Also the current verbiage is somewhat hard to understand for beginners.

Proposed Actions

Convert the current docs from reStructuredText (sphinx) to Markdown (mkdocs).

These new docs should be a 1:1 rewrite of ReactJS's documentation.

Also consider using these plugins

  • https://github.com/jimporter/mike for docs versioning
  • https://github.com/fralau/mkdocs_macros_plugin for code actions
  • https://github.com/greenape/mknotebooks or https://github.com/danielfrg/mkdocs-jupyter for embedding jupyter into the page

Related issues

  • #845
  • #779
  • #653
  • #647
  • #349
  • #568
  • #780

Archmonger avatar Dec 30 '22 07:12 Archmonger

Useful conversation to inform our decision to use mkdocs: https://github.com/encode/httpx/discussions/1220

It looks like they stuck with mkdocs in the end.

rmorshea avatar Dec 30 '22 13:12 rmorshea

I created a draft of the new docs structure using mkdocs. Used django-idom docs as the initial template.

https://github.com/Archmonger/idom-docs

Currently, the only thing that has been developed is the navigation names, and website theme.


Can be previewed by typing the following:

pip install -r build-docs.txt
mkdocs serve

Archmonger avatar Dec 31 '22 08:12 Archmonger

Looking at the docs for Textual (a popular terminal UI framework) I found a list of mkdocs plugins and extensions we might want to consider using.

rmorshea avatar Jan 26 '23 21:01 rmorshea

mktestdocs also looks interesting.

rmorshea avatar Jan 26 '23 21:01 rmorshea