-
Notifications
You must be signed in to change notification settings - Fork 87
Expand file tree
/
Copy pathmkdocs.yml
More file actions
206 lines (194 loc) · 7.02 KB
/
Copy pathmkdocs.yml
File metadata and controls
206 lines (194 loc) · 7.02 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
site_name: C3 Programming Language
site_description: "C3 is the ergonomic, safe evolution of C. Familiar syntax, full ABI compatibility, optionals, slices, contracts and zero-cost abstractions."
site_url: https://c3-lang.org
repo_url: https://github.com/c3lang/c3c
repo_name: c3lang/c3c
edit_uri: https://github.com/c3lang/c3-web/edit/main/docs/
extra:
generator: false
# version:
# provider: mike
analytics:
provider: custom #this is the cloudflare analytics
property: "044a1051452343c4acb523cbe625b1c6"
extra_css:
- assets/css/extra.css
theme:
name: material
custom_dir: theme
logo: assets/logo.png
favicon: assets/favicon.svg
icon:
repo: fontawesome/brands/git
# repo: fontawesome/brands/git-alt
palette:
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: indigo
accent: indigo
toggle:
icon: material/brightness-7
name: Switch to dark mode
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: indigo
accent: indigo
toggle:
icon: material/brightness-4
name: Switch to light mode
features:
- header.autohide
- navigation.indexes
- navigation.top
- navigation.footer
# nope # - navigation.sections # https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#navigation-sections
# - navigation.tabs # https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#navigation-tabs
# - navigation.tabs.sticky
- navigation.tracking # https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#anchor-tracking
- navigation.instant # https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#instant-loading
- navigation.instant.prefetch # https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#instant-prefetching
- navigation.instant.progress
- toc.follow
- search.suggest
- content.code.copy
- content.action.edit
# - search.highlight I don't like this one
plugins:
- search
- minify: # this one is for production
minify_html: true
minify_js: true
minify_css: true
htmlmin_opts:
remove_comments: true
- blog:
blog_dir: blog
blog_toc: true
pagination_per_page: 10
post_url_format: "{slug}"
- git-revision-date-localized:
type: datetime
- rss:
feed_title: 'The C3 blog'
match_path: "^blog/posts/.*"
image: "assets/logo.png"
length: 20
date_from_meta:
as_creation: date
categories:
- categories
- tags
- print-site: # print-site must be at the bottom of the plugin list
add_cover_page: false
add_to_navigation: false
print_page_title: 'Single Page Docs'
print_page_basename: 'all'
# Table of contents
add_table_of_contents: true
toc_title: 'Table of Contents'
toc_depth: 3
enumerate_headings: true
enumerate_figures: false
add_cover_page: false
exclude:
- index.md
- blog/*
hooks:
- hooks/c3_lexer.py
- hooks/latest_version.py # gets the "latest" version from `c3lang/c3c`
- hooks/shortlinks.py
- hooks/deprioritize_blog.py
- hooks/generate_combined_docs.py
- hooks/grammar_sync.py
# - hooks/clean_html.py # just for working offline and having a pretty html
markdown_extensions:
- pymdownx.highlight:
anchor_linenums: true
pygments_lang_class: true
- admonition
- pymdownx.details
- pymdownx.superfences
- pymdownx.tabbed:
alternate_style: true
- attr_list
- md_in_html
- toc:
permalink: true
title: On this page
nav:
- Home: index.md
- Docs:
- Introduction: getting-started/introduction.md
- Getting Started:
- Hello World: getting-started/hello-world.md
- Building C3 from source: getting-started/compile.md
- Download C3: getting-started/prebuilt-binaries.md
- Project Setup: getting-started/projects.md
- Language Overview:
- Examples: language-overview/examples.md
- Type System: language-overview/types.md
- C to C3:
- A Guide For C Programmers: c-to-c3/a-guide-for-c-programmers.md
- Language Fundamentals:
- Basic Types: language-fundamentals/basic-types-and-values.md
- Variables: language-fundamentals/variables.md
- Functions: language-fundamentals/functions.md
- Statements: language-fundamentals/statements.md
- Expressions: language-fundamentals/expressions.md
- Modules: language-fundamentals/modules.md
- Naming: language-fundamentals/naming.md
- Comments: language-fundamentals/comments.md
- Language Common:
- Arrays: language-common/arrays.md
- Strings: language-common/strings.md
- Enums: language-common/enums.md
- Structs and unions: language-common/structs-and-unions.md
- Bitstructs: language-common/bitstructs.md
- Vectors: language-common/vectors.md
- Memory Management: language-common/memory.md
- Optionals (Essential): language-common/optionals-essential.md
- Optionals (Advanced): language-common/optionals-advanced.md
- C Interop: language-common/cinterop.md
- Contracts: language-common/contracts.md
- Defer: language-common/defer.md
- Attributes: language-common/attributes.md
- Aliases: language-common/alias.md
- Generic Programming:
- Generics: generic-programming/generics.md
- Macros: generic-programming/macros.md
- Compile Time: generic-programming/compiletime.md
- Reflection: generic-programming/reflection.md
- Any & Interfaces: generic-programming/anyinterfaces.md
- Operator Overloading: generic-programming/operator-overloading.md
- Build Your Project:
- Build Commands: build-your-project/build-commands.md
- Project Config: build-your-project/project-config.md
- Language Rules:
- Implicit Conversions: language-rules/conversion.md
- Precedence: language-rules/precedence.md
- Undefined Behaviour: language-rules/undefined-behaviour.md
- Misc Advanced:
- Inline Assembly: misc-advanced/asm.md
- Builtins: misc-advanced/builtins.md
- Debugging: misc-advanced/debugging.md
- Library Packaging: misc-advanced/library-packaging.md
- Implementation Details:
- Grammar: implementation-details/grammar.md
- Specification: implementation-details/specification.md
- FAQ:
- FAQ: faq/index.md
- All Features: faq/allfeatures.md
- Comparison: faq/compare-languages.md
- Rejected Ideas: faq/rejected-ideas.md
- Roadmap: getting-started/roadmap.md
- Design Goals: getting-started/design-goals.md
- Get Involved:
- get-involved/index.md
- Thank You:
- thank-you/index.md
- Single Page Docs: all/
- "📖 Standard Library": standard-library/docs.html
- Blog:
- blog/index.md