@@ -4,7 +4,7 @@ template: overrides/main.html
4
4
5
5
# Creating your site
6
6
7
- After you've [ installed] [ 1 ] Material for MkDocs, you can bootstrap your project
7
+ After you've [ installed] Material for MkDocs, you can bootstrap your project
8
8
documentation using the ` mkdocs ` executable. Go to the directory where you want
9
9
your project to be located and enter:
10
10
@@ -35,14 +35,14 @@ This will create the following structure:
35
35
└─ mkdocs.yml
36
36
```
37
37
38
- [ 1 ] : getting-started.md
38
+ [ installed ] : getting-started.md
39
39
40
40
## Configuration
41
41
42
42
### Minimal configuration
43
43
44
44
Simply add the following lines to ` mkdocs.yml ` to enable the theme. Note that
45
- since there are several [ installation methods] [ 2 ] , configuration might be
45
+ since there are several [ installation methods] , minimal configuration might be
46
46
slightly different:
47
47
48
48
=== "pip, docker"
@@ -77,53 +77,53 @@ slightly different:
77
77
logo: logo
78
78
```
79
79
80
- _ If you cloned Material for MkDocs from GitHub, you must list all of the themes'
81
- defaults, because _ [ ` mkdocs_theme.yml ` ] [ 3 ] _ is not loaded automatically as
82
- [ described in the official documentation ] [ 4 ] . _
80
+ When you clone from GitHub, you must list all of the themes' defaults
81
+ explicitly, because [`mkdocs_theme.yml`][mkdocs_theme.yml] is not
82
+ loaded automatically as described in the [custom theme guide].
83
83
84
- [ 2 ] : getting-started.md#installation
85
- [ 3 ] : https://github.com/squidfunk/mkdocs-material/blob/master/src/mkdocs_theme.yml
86
- [ 4 ] : https://www.mkdocs.org/user-guide/custom-themes/#creating-a-custom-theme
84
+ [ installation methods ] : getting-started.md#installation
85
+ [ mkdocs_theme.yml ] : https://github.com/squidfunk/mkdocs-material/blob/master/src/mkdocs_theme.yml
86
+ [ custom theme guide ] : https://www.mkdocs.org/user-guide/custom-themes/#creating-a-custom-theme
87
87
88
88
### Advanced configuration
89
89
90
- Material for MkDocs comes with many configuration options. The _ setup _ section
90
+ Material for MkDocs comes with many configuration options. The setup section
91
91
explains in great detail how to configure and customize colors, fonts, icons
92
92
and much more:
93
93
94
- <div class =" mdx-columns " markdown = " 1 " >
95
-
96
- - [ Changing the colors] [ 5 ]
97
- - [ Changing the fonts] [ 6 ]
98
- - [ Changing the language] [ 7 ]
99
- - [ Changing the logo and icons] [ 8 ]
100
- - [ Setting up navigation] [ 9 ]
101
- - [ Setting up site search] [ 10 ]
102
- - [ Setting up site analytics] [ 11 ]
103
- - [ Setting up social cards] [ 12 ]
104
- - [ Setting up tags] [ 13 ]
105
- - [ Setting up versioning] [ 14 ]
106
- - [ Setting up the header] [ 15 ]
107
- - [ Setting up the footer] [ 16 ]
108
- - [ Adding a git repository] [ 17 ]
109
- - [ Adding a comment system] [ 18 ]
94
+ <div class =" mdx-columns " markdown >
95
+
96
+ - [ Changing the colors]
97
+ - [ Changing the fonts]
98
+ - [ Changing the language]
99
+ - [ Changing the logo and icons]
100
+ - [ Setting up navigation]
101
+ - [ Setting up site search]
102
+ - [ Setting up site analytics]
103
+ - [ Setting up social cards]
104
+ - [ Setting up tags]
105
+ - [ Setting up versioning]
106
+ - [ Setting up the header]
107
+ - [ Setting up the footer]
108
+ - [ Adding a git repository]
109
+ - [ Adding a comment system]
110
110
111
111
</div >
112
112
113
- [ 5 ] : setup/changing-the-colors.md
114
- [ 6 ] : setup/changing-the-fonts.md
115
- [ 7 ] : setup/changing-the-language.md
116
- [ 8 ] : setup/changing-the-logo-and-icons.md
117
- [ 9 ] : setup/setting-up-navigation.md
118
- [ 10 ] : setup/setting-up-site-search.md
119
- [ 11 ] : setup/setting-up-site-analytics.md
120
- [ 12 ] : setup/setting-up-social-cards.md
121
- [ 13 ] : setup/setting-up-tags.md
122
- [ 14 ] : setup/setting-up-versioning.md
123
- [ 15 ] : setup/setting-up-the-header.md
124
- [ 16 ] : setup/setting-up-the-footer.md
125
- [ 17 ] : setup/adding-a-git-repository.md
126
- [ 18 ] : setup/adding-a-comment-system.md
113
+ [ Changing the colors ] : setup/changing-the-colors.md
114
+ [ Changing the fonts ] : setup/changing-the-fonts.md
115
+ [ Changing the language ] : setup/changing-the-language.md
116
+ [ Changing the logo and icons ] : setup/changing-the-logo-and-icons.md
117
+ [ Setting up navigation ] : setup/setting-up-navigation.md
118
+ [ Setting up site search ] : setup/setting-up-site-search.md
119
+ [ Setting up site analytics ] : setup/setting-up-site-analytics.md
120
+ [ Setting up social cards ] : setup/setting-up-social-cards.md
121
+ [ Setting up tags ] : setup/setting-up-tags.md
122
+ [ Setting up versioning ] : setup/setting-up-versioning.md
123
+ [ Setting up the header ] : setup/setting-up-the-header.md
124
+ [ Setting up the footer ] : setup/setting-up-the-footer.md
125
+ [ Adding a git repository ] : setup/adding-a-git-repository.md
126
+ [ Adding a comment system ] : setup/adding-a-comment-system.md
127
127
128
128
## Previewing as you write
129
129
@@ -149,12 +149,12 @@ If you're running Material for MkDocs from within Docker, use:
149
149
docker run --rm -it -p 8000:8000 -v "%cd%":/docs squidfunk/mkdocs-material
150
150
```
151
151
152
- Point your browser to [ localhost:8000] [ 19 ] and you should see:
152
+ Point your browser to [ localhost:8000] [ live preview ] and you should see:
153
153
154
- [ ![ Creating your site] [ 20 ]] [ 20 ]
154
+ [ ![ Creating your site]] [ Creating your site ]
155
155
156
- [ 19 ] : http://localhost:8000
157
- [ 20 ] : assets/screenshots/creating-your-site.png
156
+ [ live preview ] : http://localhost:8000
157
+ [ Creating your site ] : assets/screenshots/creating-your-site.png
158
158
159
159
## Building your site
160
160
@@ -167,8 +167,8 @@ mkdocs build
167
167
168
168
The contents of this directory make up your project documentation. There's no
169
169
need for operating a database or server, as it is completely self-contained.
170
- The site can be hosted on [ GitHub Pages] [ 21 ] , [ GitLab Pages] [ 22 ] , a CDN of your
171
- choice or your private web space.
170
+ The site can be hosted on [ GitHub Pages] , [ GitLab Pages] , a CDN of your choice
171
+ or your private web space.
172
172
173
- [ 21 ] : publishing-your-site.md#github-pages
174
- [ 22 ] : publishing-your-site.md#gitlab-pages
173
+ [ GitHub Pages ] : publishing-your-site.md#github-pages
174
+ [ GitLab pages ] : publishing-your-site.md#gitlab-pages
0 commit comments