mirror of
https://github.com/mkdocs/mkdocs.git
synced 2026-03-27 09:58:31 +07:00
HTTPS Links
This commit is contained in:
@@ -199,7 +199,7 @@ site and you may want to link to other parts of the same site without including
|
||||
the full domain. In that case, you may use and appropriate relative URL.
|
||||
|
||||
```yaml
|
||||
site_url: http://example.com/foo/
|
||||
site_url: https://example.com/foo/
|
||||
|
||||
nav:
|
||||
- Home: ../
|
||||
@@ -211,8 +211,8 @@ In the above example, two different styles of external links are used. First
|
||||
note that the `site_url` indicates that the MkDocs site is hosted in the `/foo/`
|
||||
subdirectory of the domain. Therefore, the `Home` navigation item is a relative
|
||||
link which steps up one level to the server root and effectively points to
|
||||
`http://example.com/`. The `Bug Tracker` item uses an absolute path from the
|
||||
server root and effectively points to `http://example.com/bugs/`. Of course, the
|
||||
`https://example.com/`. The `Bug Tracker` item uses an absolute path from the
|
||||
server root and effectively points to `https://example.com/bugs/`. Of course, the
|
||||
`User Guide` points to a local MkDocs page.
|
||||
|
||||
**default**: By default `nav` will contain an alphanumerically sorted, nested
|
||||
@@ -576,7 +576,7 @@ You may [contribute additional languages].
|
||||
[styling your docs]: styling-your-docs.md
|
||||
[extra_css]: #extra_css
|
||||
[Plugins]: plugins.md
|
||||
[lunr.js]: http://lunrjs.com/
|
||||
[lunr.js]: https://lunrjs.com/
|
||||
[ISO 639-1]: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
|
||||
[Lunr Languages]: https://github.com/MihaiValentin/lunr-languages#lunr-languages-----
|
||||
[contribute additional languages]: https://github.com/MihaiValentin/lunr-languages/blob/master/CONTRIBUTING.md
|
||||
|
||||
@@ -297,9 +297,9 @@ assigned to the [site_url] configuration setting. The value includes any
|
||||
subdirectory included in the `site_url`, but not the domain. [base_url] should
|
||||
not be used with this variable.
|
||||
|
||||
For example, if `site_url: http://example.com/`, then the value of
|
||||
For example, if `site_url: https://example.com/`, then the value of
|
||||
`page.abs_url` for the page `foo.md` would be `/foo/`. However, if
|
||||
`site_url: http://example.com/bar/`, then the value of `page.abs_url` for the
|
||||
`site_url: https://example.com/bar/`, then the value of `page.abs_url` for the
|
||||
page `foo.md` would be `/bar/foo/`.
|
||||
|
||||
[site_url]: ./configuration.md#site_url
|
||||
@@ -484,7 +484,7 @@ extra:
|
||||
links:
|
||||
- https://github.com/mkdocs
|
||||
- https://docs.readthedocs.org/en/latest/builds.html#mkdocs
|
||||
- http://www.mkdocs.org/
|
||||
- https://www.mkdocs.org/
|
||||
```
|
||||
|
||||
And then displayed with this HTML in the custom theme.
|
||||
@@ -636,7 +636,7 @@ index when it is available. The `index` object was new in MkDocs version *1.0*.
|
||||
[Jinja2 template]: http://jinja.pocoo.org/docs/dev/
|
||||
[built-in themes]: https://github.com/mkdocs/mkdocs/tree/master/mkdocs/themes
|
||||
[theme's configuration file]: #theme-configuration
|
||||
[lunr.js]: http://lunrjs.com/
|
||||
[lunr.js]: https://lunrjs.com/
|
||||
[site_dir]: configuration.md#site_dir
|
||||
[prebuild_index]: configuration.md#prebuild_index
|
||||
|
||||
@@ -660,8 +660,8 @@ Bootswatch theme].
|
||||
their needs.
|
||||
|
||||
[Python packaging]: https://packaging.python.org/en/latest/
|
||||
[MkDocs Bootstrap theme]: http://mkdocs.github.io/mkdocs-bootstrap/
|
||||
[MkDocs Bootswatch theme]: http://mkdocs.github.io/mkdocs-bootswatch/
|
||||
[MkDocs Bootstrap theme]: https://mkdocs.github.io/mkdocs-bootstrap/
|
||||
[MkDocs Bootswatch theme]: https://mkdocs.github.io/mkdocs-bootswatch/
|
||||
|
||||
### Package Layout
|
||||
|
||||
|
||||
@@ -320,7 +320,7 @@ any additional CSS files included in the `custom_dir`.
|
||||
|
||||
[browse source]: https://github.com/mkdocs/mkdocs/tree/master/mkdocs/themes/mkdocs
|
||||
[built-in themes]: #built-in-themes
|
||||
[Bootstrap]: http://getbootstrap.com/
|
||||
[Bootstrap]: https://getbootstrap.com/
|
||||
[theme configuration options]: ./configuration.md#theme
|
||||
[Read the Docs]: https://readthedocs.org/
|
||||
[community wiki]: https://github.com/mkdocs/mkdocs/wiki/MkDocs-Themes
|
||||
|
||||
@@ -379,7 +379,7 @@ authors:
|
||||
- Waylan Limberg
|
||||
- Tom Christie
|
||||
date: 2018-07-10
|
||||
some_url: http://example.com
|
||||
some_url: https://example.com
|
||||
---
|
||||
This is the first paragraph of the document.
|
||||
```
|
||||
@@ -407,7 +407,7 @@ Authors: Waylan Limberg
|
||||
Tom Christie
|
||||
Date: January 23, 2018
|
||||
blank-value:
|
||||
some_url: http://example.com
|
||||
some_url: https://example.com
|
||||
|
||||
This is the first paragraph of the document.
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user