Skip to content

Commit edf97be

Browse files
committed
Add section permalinks to docs
- Configure mkdocs to use the toc markdown extension - Only show section link styles on hover
1 parent fa6f053 commit edf97be

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs_theme/css/default.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,3 +413,7 @@ ul.sponsor {
413413
#mkdocs_search_modal article p{
414414
word-wrap: break-word;
415415
}
416+
417+
.toclink {
418+
color: #333;
419+
}

mkdocs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ repo_url: https://github.com/tomchristie/django-rest-framework
66

77
theme_dir: docs_theme
88

9+
markdown_extensions:
10+
- toc:
11+
anchorlink: True
12+
913
pages:
1014
- Home: 'index.md'
1115
- Tutorial:

0 commit comments

Comments
 (0)