From edf97be7bed5ac7078694c5cda762e1741694383 Mon Sep 17 00:00:00 2001 From: Adam Zapletal Date: Tue, 27 Oct 2015 15:20:59 -0500 Subject: [PATCH] Add section permalinks to docs - Configure mkdocs to use the toc markdown extension - Only show section link styles on hover --- docs_theme/css/default.css | 4 ++++ mkdocs.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/docs_theme/css/default.css b/docs_theme/css/default.css index 7f0f8afd8..192e86860 100644 --- a/docs_theme/css/default.css +++ b/docs_theme/css/default.css @@ -413,3 +413,7 @@ ul.sponsor { #mkdocs_search_modal article p{ word-wrap: break-word; } + +.toclink { + color: #333; +} diff --git a/mkdocs.yml b/mkdocs.yml index 5090f0027..04799b734 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -6,6 +6,10 @@ repo_url: https://github.com/tomchristie/django-rest-framework theme_dir: docs_theme +markdown_extensions: + - toc: + anchorlink: True + pages: - Home: 'index.md' - Tutorial: