Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mkdocs/sketch
...
https://github.com/mkdocs/sketch
Last synced: about 1 month ago
JSON representation
...
- Host: GitHub
- URL: https://github.com/mkdocs/sketch
- Owner: mkdocs
- Created: 2024-05-17T15:16:36.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-04T15:43:30.000Z (3 months ago)
- Last Synced: 2024-10-01T09:43:08.954Z (about 1 month ago)
- Language: JavaScript
- Size: 124 KB
- Stars: 9
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Insiders
$redesign$ $sketch$ $work$
---
## What
There's a much cleaner `mkdocs` under the hood, waiting to be let out.
*This is a space for design exploration.*
At the same time we also need to continue to improve mkdocs as it currently stands.
I'm planning on taking a dual approach here...* Incremental improvements to the existing `mkdocs`. *(As a minimum the default theme needs freshening up.)*
* Explore this design space, and determine how we can best move forward in places where more fundamental changes are required.## Core design themes
*TODO: Expand on this.*
#### 1 A clean obvious build context for themes to work with.
https://github.com/mkdocs/insiders/blob/main/mkdocs/site.py
#### 2 Templating over code.
Safe rendering, avoid Python knowledge as a dependancy.
#### 3 Kiss.
Onboarding etc.
## Give it a whirl
```
git clone https://github.com/encode/httpx
cd httpx
python -m venv venv
venv/bin/pip install git+https://github.com/mkdocs/sketch
venv/bin/mkdocs serve
```## What's the big deal
* `mkdocs serve` renders pages on the fly. There's no "build the whole site" process needed.
* The context passed to the theme [is completely cleaned up](https://github.com/mkdocs/sketch/blob/main/mkdocs/site.py). I'll write about this as we go, there's a really clean clear data model that's passed through to the templating.
* More to come...