Skip to content

Commit 1344a1f

Browse files
authored
Merge pull request #2 from django-commons/flesh-out-mkdocs
Flesh out mkdocs
2 parents c08dd79 + 30ab5c2 commit 1344a1f

File tree

5 files changed

+46
-0
lines changed

5 files changed

+46
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
site/

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.4.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-yaml
8+
- id: check-added-large-files

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# django-commons.github.io
2+
3+
The Django Commons docs are deployed at [django-commons.org](https://django-commons.org).
4+
5+
## MkDocs Commands
6+
7+
* `mkdocs new [dir-name]` - Create a new project.
8+
* `mkdocs serve` - Start the live-reloading docs server.
9+
* `mkdocs build` - Build the documentation site.
10+
* `mkdocs -h` - Print help message and exit.
11+
12+
## Local Development
13+
14+
- Create a Python 3.12 virtual environment
15+
- Run `pip install mkdocs`
16+
- Run `mkdocs serve`
17+
18+
### pre-commit
19+
20+
You don't have to use pre-commit. But if you choose to:
21+
22+
- Run `pip install pre-commit`
23+
- Run `pre-commit install`
24+
25+
This will install pre-commit. Then, before you commit, run `pre-commit run` to run pre-commit and check your changed files for linting errors.

docs/index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Django Commons
2+
3+
## Repositories
4+
5+
- [django-commons/membership](https://github.com/django-commons/membership)
6+
- [django-commons/best-practices](https://github.com/django-commons/best-practices)
7+
- [django-commons/controls](https://github.com/django-commons/controls)

mkdocs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
site_name: Django Commons
2+
repo_url: https://github.com/django-commons/django-commons.github.io
3+
markdown_extensions:
4+
- toc:
5+
permalink: "#"

0 commit comments

Comments
 (0)