mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Add section permalinks to docs
- Configure mkdocs to use the toc markdown extension - Only show section link styles on hover
This commit is contained in:
parent
fa6f053323
commit
edf97be7be
|
@ -413,3 +413,7 @@ ul.sponsor {
|
||||||
#mkdocs_search_modal article p{
|
#mkdocs_search_modal article p{
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.toclink {
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
|
@ -6,6 +6,10 @@ repo_url: https://github.com/tomchristie/django-rest-framework
|
||||||
|
|
||||||
theme_dir: docs_theme
|
theme_dir: docs_theme
|
||||||
|
|
||||||
|
markdown_extensions:
|
||||||
|
- toc:
|
||||||
|
anchorlink: True
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
- Home: 'index.md'
|
- Home: 'index.md'
|
||||||
- Tutorial:
|
- Tutorial:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user