refactor: use .nav.yml to define page order instead of nav weights (#1000)

This commit is contained in:
Juro Oravec 2025-02-23 22:44:12 +01:00 committed by GitHub
parent f36581ed86
commit d5e45125dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
57 changed files with 95 additions and 231 deletions

View file

@ -0,0 +1,5 @@
# `.nav.yml` is provided by https://lukasgeiter.github.io/mkdocs-awesome-nav
nav:
- Syntax highlighting: syntax_highlight.md
- Caching: caching.md
- Development server: development_server.md

View file

@ -1,8 +1,3 @@
---
title: Caching
weight: 2
---
This page describes the kinds of assets that django-components caches and how to configure the cache backends.
## Component's JS and CSS files

View file

@ -1,8 +1,3 @@
---
title: Development server
weight: 3
---
### Reload dev server on component file changes
This is relevant if you are using the project structure as shown in our examples, where

View file

@ -1,8 +1,3 @@
---
title: Syntax highlighting
weight: 1
---
## VSCode
1. First install [Python Inline Source Syntax Highlighting](https://marketplace.visualstudio.com/items?itemName=samwillis.python-inline-source) extension, it will give you syntax highlighting for the template, CSS, and JS.