Skip to content

Commit

Permalink
Rework the documentation skeleton + adopt myst
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Sep 1, 2020
1 parent f3007c0 commit ac5f826
Show file tree
Hide file tree
Showing 25 changed files with 138 additions and 74 deletions.
10 changes: 10 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
hide-toc: true
---


# Changelog

## unreleased

Initial release.
5 changes: 0 additions & 5 deletions docs/changelog.rst

This file was deleted.

2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# -- General configuration ---------------------------------------------------
#

extensions = ["sphinx.ext.autodoc", "sphinx.ext.mathjax"]
extensions = ["sphinx.ext.autodoc", "sphinx.ext.mathjax", "myst_parser"]
templates_path = ["_templates"]

#
Expand Down
5 changes: 0 additions & 5 deletions docs/contributing.rst

This file was deleted.

9 changes: 9 additions & 0 deletions docs/customisation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Customisation

TODO: provide information about:

- how the entire theme is designed with CSS variables and how to override them
- via `css_variables` in conf.py (recommended, if you're not adding more CSS)
- custom CSS files
- how `basic` theme's variables can be set but won't do s***
- and finally, go read references for specific elements!
5 changes: 0 additions & 5 deletions docs/customisation.rst

This file was deleted.

20 changes: 20 additions & 0 deletions docs/demo/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Sphinx RTD Theme's Demo Documentation

All the pages within this section are copied over straight from
[Sphinx ReadTheDocs Theme]'s "DEMO DOCUMENTATION" section.

```{toctree}
:maxdepth: 1
demo
lists_tables
api
long
structure
```

Huge shoutout to everyone who's worked on `sphinx-rtd-theme`, since it was
an absolutely essential reference for how to do things well.

The folks at ReadTheDocs are doing really important work. [TODO: say something about how ethical ads as awesome, and call-to-action pointing to RTD's sustainability page]

[Sphinx ReadTheDocs Theme]: https://sphinx-rtd-theme.readthedocs.io/en/stable/
14 changes: 0 additions & 14 deletions docs/demo/index.rst

This file was deleted.

13 changes: 13 additions & 0 deletions docs/development/design-goals.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Design Goals

TODO: Write this.

- why I wrote this.
- good navigational capabilities in sidebar
- "content in the middle" three-column layout
- inspired by justthedocs and mkdocs-material
- what were the guiding ideas?
- content is the focus
- more stuff is not more good
- graceful degradation
- no need to look the same everywhere
7 changes: 7 additions & 0 deletions docs/development/getting-started.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Getting Started

TODO: write this

- 5-sentence overview of development workflow.
- how to get set up (if you have Python and Node setup).
- what the various nox commands are.
17 changes: 17 additions & 0 deletions docs/development/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Development

TODO: write a welcome message and describe how this section of the
documentation is layed out.

```{toctree}
:maxdepth: 1
getting-started
internals
design-goals
```

TODO: provide information about:

- CoC
- @pradyunsg is the BDFL.
- open to making changes? Yes, even drastic ones if there's a strong case.
11 changes: 11 additions & 0 deletions docs/development/internals.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Internals

TODO: This page will provide an overview of the "internals" of the development process.

- How the repository is layed out.
- How the theme is built, for development and for release.
- How all the code-supported components work.
- CSS variables
- Navigation
- Contents
- Tables + Code backgrounds
5 changes: 0 additions & 5 deletions docs/features.rst

This file was deleted.

19 changes: 19 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Home

See `_templates/layouts/home.html` for the actual homepage HTML. This file only serves to provide the correct toctree to Sphinx.

```{toctree}
quickstart
customisation
reference/index
development/index
changelog
license
```

```{toctree}
:caption: Kitchen Sink
GitHub Repository <https://github.com/pradyunsg/mawek>
demo/index
```
28 changes: 0 additions & 28 deletions docs/index.rst

This file was deleted.

5 changes: 0 additions & 5 deletions docs/introduction.rst

This file was deleted.

3 changes: 3 additions & 0 deletions docs/quickstart.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Quickstart

TODO: I still need to write this.
5 changes: 0 additions & 5 deletions docs/recommendations.rst

This file was deleted.

3 changes: 3 additions & 0 deletions docs/reference/admonitions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Admonitions

TODO: provides a reference to how to customize the admonitions, and how to add custom admonitions.
3 changes: 3 additions & 0 deletions docs/reference/colors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Colors

TODO: provides a reference to how to customize the colors for various things.
3 changes: 3 additions & 0 deletions docs/reference/fonts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Fonts

TODO: provides a reference to how to customize the fonts (--font-size) and friends.
12 changes: 12 additions & 0 deletions docs/reference/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Reference

```{toctree}
:caption: Reference for various elements
:maxdepth: 1
admonitions
colors
fonts
nav-sidebar
toc-sidebar
```
3 changes: 3 additions & 0 deletions docs/reference/nav-sidebar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Navigation Sidebar

TODO: provides a reference to how to customize the sidebar and it's contents.
3 changes: 3 additions & 0 deletions docs/reference/toc-sidebar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Contents Sidebar

TODO: provides a reference to how to customize the sidebar and it's contents.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test = [
"pytest-cov",
"pytest-xdist",
]
doc = ["sphinx"]
doc = ["sphinx", "myst-parser"]

[tool.flit.entrypoints]
"sphinx.html_themes" = {mawek = "mawek"}
Expand Down

0 comments on commit ac5f826

Please sign in to comment.