-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmkdocs.yml
More file actions
151 lines (134 loc) · 4.8 KB
/
Copy pathmkdocs.yml
File metadata and controls
151 lines (134 loc) · 4.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
site_name: Django ReBAC
site_description: Enterprise ReBAC integration for Django.
site_author: "Sadegh Yazdani"
site_url: https://django-rebac.readthedocs.io
repo_url: https://github.com/OrmusLabs/django-rebac
repo_name: "aerosadegh/django-rebac"
edit_uri: edit/main/docs/
theme:
name: material
font:
text: Roboto
code: Roboto Mono
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
primary: teal
accent: deep purple
toggle:
icon: material/brightness-7
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: teal
accent: deep purple
toggle:
icon: material/brightness-4
name: Switch to light mode
features:
- navigation.footer
# Navigation upgrades
- navigation.tabs
- navigation.tabs.sticky # Keeps top tabs visible when scrolling down
- navigation.sections
- navigation.expand
- navigation.top # Adds a slick "Back to top" button
- navigation.indexes # Allows sections to have their own clickable index pages
- toc.follow # The right-hand Table of Contents highlights as you scroll
# Search upgrades
- search.suggest # Auto-suggests while typing in the search bar
- search.highlight # Highlights the search terms on the page
- search.share
# Code block upgrades
- content.code.copy # Copy button
- content.code.annotate # Allows you to add beautiful inline annotations to code!
- content.tabs.link # If you click a "Python" tab on one code block, it switches all code blocks to Python
icon:
repo: fontawesome/brands/github
edit: material/pencil
view: material/eye
previous: fontawesome/solid/angle-left
next: fontawesome/solid/angle-right
nav:
- Home: index.md
- Core Concepts:
- Architecture & Philosophy: architecture/philosophy.md
- The Zanzibar Model: getting-started/zanzibar-model.md
- Authorization Flow: getting-started/authz-flow.md
- "Getting Started":
- Installation: getting-started/installation.md
- Traefik Setup: getting-started/docker-traefik.md
- "Guides: Schema & Data Modeling":
- Roles vs. Permissions: schema/design-guide.md
- When to Use Local DB Fields: schema/local-db-fields.md
- "Guides: Implementation":
- Syncing Django Models: examples/models.md
- Assigning Dynamic Roles: schema/role-assignments.md
- Securing API Views: examples/views.md
- Frontend & Serializers: examples/frontend-integration.md
- Stateless Dashboards: examples/stateless-views.md
- Nested Hierarchies (Trees): examples/advanced-trees.md
- Model Property Fallback: examples/advanced_creation.md
- API Reference:
- Configuration (Structs): api/configs.md
- Mixins: api/mixins.md
- Permissions: api/permissions.md
- Settings & Utils: api/settings.md
extra:
social:
- icon: fontawesome/brands/github
link: https://github.com/aerosadegh/django-rebac
- icon: fontawesome/brands/python
link: https://pypi.org/project/django-rebac/
version:
provider: mike
copyright: Copyright © 2026 Sadegh Yazdani. Licensed under GPL-3.
plugins:
- search:
separator: '[\s-,:!=\[\]()"/]+|(?!\b)(?=[A-Z][a-z])|\.(?!\d)|&[lg]t;'
- mkdocstrings:
handlers:
python:
paths: [src]
options:
docstring_style: google
show_source: true
show_root_heading: true
show_root_full_path: false
show_signature_annotations: true
separate_signature: true
merge_init_into_class: true
show_if_no_docstring: false
inherited_members: true
members_order: source
group_by_category: true
show_category_heading: true
- mike
markdown_extensions:
# The magic formatting tools!
- admonition # Enables callout blocks (!!! info, !!! warning, !!! danger)
- attr_list
- footnotes
- md_in_html
- tables
- pymdownx.details # Allows you to make admonitions collapsible (??? info)
- pymdownx.superfences
- pymdownx.tabbed: # Enables tabbed content inside your markdown pages
alternate_style: true
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.tasklist: # Renders beautiful checklist boxes
custom_checkbox: true
- pymdownx.magiclink # Auto-formats URLs into clickable links
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.emoji: # Ensures your 🤠 and other emojis render perfectly via SVG
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg