mirror of
https://github.com/encode/django-rest-framework.git
synced 2026-03-03 19:41:26 +03:00
* Switch to mkdocs material theme * Add logo * Style badges on homepage * Basic dark theme * Enable a few theme features * Customise large logo for dark theme * CSS tweaks * Add background grid back * Switch to mkdocs material theme * Add logo * Style badges on homepage * Basic dark theme * Add syntax highlighting to code snippets * Convert homepage snippets to code fences * Update homepage logos * Move mkdocs-material to pyproject.toml docs group * Keep existing syntax highlighting * Remove old docs_theme folder * Tweak syntax highlighting colors on dark theme * Add readthedocs config file * Fix end of file empty lines * Upgrade pip during install * Remove custom styling for .prettyprint * Remove .prettyprint border entirely * Make tabs sticky in navbar * Merge page ToC with navigation * Tweak colors for more accessible contrast * Add Figma file for the logos * Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Adjust styles for badges * Enable content tabs for OS specific instructions https://squidfunk.github.io/mkdocs-material/reference/content-tabs/ * Add icons for content tabs * Standardize on .venv for virtualenv name in docs * Add note about bash for Windows --------- Co-authored-by: Asif Saif Uddin {"Auvi":"অভি"} <auvipy@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
13 lines
343 B
HTML
13 lines
343 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block scripts %}
|
|
{{ super() }}
|
|
<script>
|
|
document$.subscribe(function() {
|
|
document.querySelectorAll('pre code').forEach(code => {
|
|
code.parentElement.classList.add('prettyprint', 'well');
|
|
});
|
|
prettyPrint();
|
|
});
|
|
</script>
|
|
{% endblock %} |