From 23e15789bf6b879b455f1249e47a43d4c752b3ed Mon Sep 17 00:00:00 2001 From: Jamie Hewland Date: Sun, 7 Feb 2021 19:06:30 +0000 Subject: [PATCH] Fix docs syntax highlighting (#1136) * mkdocs: Use python-markdown-extensions syntax highlighter * mkdocs: Use 2-space indent consistently in config file --- mkdocs.yml | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index 6f7b5323a..a20f1ea7e 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -2,41 +2,41 @@ site_name: Starlette site_description: The little ASGI library that shines. theme: - name: 'material' + name: 'material' repo_name: encode/starlette repo_url: https://github.com/encode/starlette edit_uri: "" nav: - - Introduction: 'index.md' - - Applications: 'applications.md' - - Requests: 'requests.md' - - Responses: 'responses.md' - - WebSockets: 'websockets.md' - - Routing: 'routing.md' - - Endpoints: 'endpoints.md' - - Middleware: 'middleware.md' - - Static Files: 'staticfiles.md' - - Templates: 'templates.md' - - Database: 'database.md' - - GraphQL: 'graphql.md' - - Authentication: 'authentication.md' - - API Schemas: 'schemas.md' - - Events: 'events.md' - - Background Tasks: 'background.md' - - Server Push: 'server-push.md' - - Exceptions: 'exceptions.md' - - Configuration: 'config.md' - - Test Client: 'testclient.md' - - Third Party Packages: 'third-party-packages.md' - - Release Notes: 'release-notes.md' + - Introduction: 'index.md' + - Applications: 'applications.md' + - Requests: 'requests.md' + - Responses: 'responses.md' + - WebSockets: 'websockets.md' + - Routing: 'routing.md' + - Endpoints: 'endpoints.md' + - Middleware: 'middleware.md' + - Static Files: 'staticfiles.md' + - Templates: 'templates.md' + - Database: 'database.md' + - GraphQL: 'graphql.md' + - Authentication: 'authentication.md' + - API Schemas: 'schemas.md' + - Events: 'events.md' + - Background Tasks: 'background.md' + - Server Push: 'server-push.md' + - Exceptions: 'exceptions.md' + - Configuration: 'config.md' + - Test Client: 'testclient.md' + - Third Party Packages: 'third-party-packages.md' + - Release Notes: 'release-notes.md' markdown_extensions: - - markdown.extensions.codehilite: - guess_lang: false - mkautodoc - admonition + - pymdownx.highlight + - pymdownx.superfences extra_javascript: - 'js/chat.js'