Added documentation on extra.homepage

This commit is contained in:
squidfunk 2021-03-14 14:09:13 +01:00
parent 90e9b8aeee
commit 6506a784e3
5 changed files with 18 additions and 7 deletions

View File

@ -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
[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
[:octicons-file-code-24: Source][5] ·

View File

@ -53,5 +53,5 @@
{% endblock %}
{% block scripts %}
{{ super() }}
<script src="{{ 'overrides/assets/javascripts/bundle.55e80bbe.min.js' | url }}"></script>
<script src="{{ 'overrides/assets/javascripts/bundle.de9a3919.min.js' | url }}"></script>
{% endblock %}

View File

@ -38,7 +38,7 @@ import { setupAnalytics } from "./integrations"
setupAnalytics()
/* Set up extra component observables */
document$
const component$ = document$
.pipe(
switchMap(() => merge(
@ -51,4 +51,6 @@ document$
.map(el => mountSponsorship(el))
))
)
.subscribe()
/* Subscribe to all components */
component$.subscribe()