Skip to content

Commit

Permalink
Change the structure of the MkDocs assets. Stylesheets and logos are …
Browse files Browse the repository at this point in the history
…moved to the `overrides` directory (#7429)
  • Loading branch information
MichelGabriel authored Nov 14, 2023
1 parent 124190c commit 0adbe3c
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
25 changes: 16 additions & 9 deletions docs/manual/help.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
# Project information
site_name: Catalogue Help
site_dir: target/help
docs_dir: docs/help

# Copyright
copyright: Copyright © 2001 - 2023 FAO-UN and others

extra_css:
- stylesheets/extra.css
- assets/stylesheets/extra.css

theme:
name: material
language: en
custom_dir: overrides
logo: assets/geonetwork-logo.svg
favicon: assets/geonetwork-logo.png
logo: assets/images/geonetwork-logo.svg
favicon: assets/images/geonetwork-logo.png
palette:

# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: blue grey

primary: blue
toggle:
icon: material/weather-night
name: Switch to dark mode

# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/weather-sunny
name: Switch to light mode

features:
- content.code.annotate
- content.tabs.link
Expand Down Expand Up @@ -87,8 +89,13 @@ markdown_extensions:
- tables

extra:
homepage: https://geonetwork-opensource.org/
social:
- icon: fontawesome/solid/arrow-up-right-from-square
- icon: fontawesome/brands/github
link: https://github.com/geonetwork
- icon: fontawesome/brands/docker
link: https://hub.docker.com/_/geonetwork
- icon: geonetwork/logo_bw
link: https://geonetwork-opensource.org/
name: GeoNetwork Website

Expand Down
6 changes: 3 additions & 3 deletions docs/manual/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ edit_uri: edit/main/docs/manual/docs
copyright: Copyright © 2001 - 2023 FAO-UN and others

extra_css:
- stylesheets/extra.css
- assets/stylesheets/extra.css

# Configuration
theme:
name: material
language: en
custom_dir: overrides
logo: assets/geonetwork-logo.svg
favicon: assets/geonetwork-logo.png
logo: assets/images/geonetwork-logo.svg
favicon: assets/images/geonetwork-logo.png
icon:
repo: fontawesome/brands/github
palette:
Expand Down
File renamed without changes.

0 comments on commit 0adbe3c

Please sign in to comment.