Skip to content

Commit

Permalink
Added documentation on extra.homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Mar 14, 2021
1 parent 90e9b8a commit 6506a78
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
9 changes: 9 additions & 0 deletions docs/setup/changing-the-logo-and-icons.md
Expand Up @@ -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] ·
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion material/overrides/main.html
Expand Up @@ -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 %}
6 changes: 4 additions & 2 deletions src/overrides/assets/javascripts/bundle.ts
Expand Up @@ -38,7 +38,7 @@ import { setupAnalytics } from "./integrations"
setupAnalytics()

/* Set up extra component observables */
document$
const component$ = document$
.pipe(
switchMap(() => merge(

Expand All @@ -51,4 +51,6 @@ document$
.map(el => mountSponsorship(el))
))
)
.subscribe()

/* Subscribe to all components */
component$.subscribe()

0 comments on commit 6506a78

Please sign in to comment.