mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-28 01:10:58 +01:00
Added documentation on extra.homepage
This commit is contained in:
parent
90e9b8aeee
commit
6506a784e3
@ -41,6 +41,15 @@ Add the following lines to `mkdocs.yml`:
|
|||||||
[3]: https://github.com/squidfunk/mkdocs-material/blob/master/material/.icons/material/library.svg
|
[3]: https://github.com/squidfunk/mkdocs-material/blob/master/material/.icons/material/library.svg
|
||||||
[4]: https://github.com/squidfunk/mkdocs-material/tree/master/material/.icons
|
[4]: https://github.com/squidfunk/mkdocs-material/tree/master/material/.icons
|
||||||
|
|
||||||
|
Normally, the logo in the header and sidebar links to the homepage of the
|
||||||
|
documentation, which is the same as `site_url`. This behavior can be changed
|
||||||
|
with the following configuration:
|
||||||
|
|
||||||
|
``` yaml
|
||||||
|
extra:
|
||||||
|
homepage: https://example.com
|
||||||
|
```
|
||||||
|
|
||||||
### Favicon
|
### Favicon
|
||||||
|
|
||||||
[:octicons-file-code-24: Source][5] ·
|
[:octicons-file-code-24: Source][5] ·
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -53,5 +53,5 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
<script src="{{ 'overrides/assets/javascripts/bundle.55e80bbe.min.js' | url }}"></script>
|
<script src="{{ 'overrides/assets/javascripts/bundle.de9a3919.min.js' | url }}"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -38,7 +38,7 @@ import { setupAnalytics } from "./integrations"
|
|||||||
setupAnalytics()
|
setupAnalytics()
|
||||||
|
|
||||||
/* Set up extra component observables */
|
/* Set up extra component observables */
|
||||||
document$
|
const component$ = document$
|
||||||
.pipe(
|
.pipe(
|
||||||
switchMap(() => merge(
|
switchMap(() => merge(
|
||||||
|
|
||||||
@ -51,4 +51,6 @@ document$
|
|||||||
.map(el => mountSponsorship(el))
|
.map(el => mountSponsorship(el))
|
||||||
))
|
))
|
||||||
)
|
)
|
||||||
.subscribe()
|
|
||||||
|
/* Subscribe to all components */
|
||||||
|
component$.subscribe()
|
||||||
|
Loading…
Reference in New Issue
Block a user