Skip to content

Commit

Permalink
Introduce banner for outdated 2.10.x manual
Browse files Browse the repository at this point in the history
  • Loading branch information
jodygarnett committed Mar 27, 2024
1 parent 0a7f84b commit 0a2ac0e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
1 change: 0 additions & 1 deletion docs/manual/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ We use ``mike`` for publishing (from the `gh-pages` branch). Docs are published

If you wish to preview using your own `gh-pages` branch:


1. To update publish documentation:

```bash
Expand Down
4 changes: 0 additions & 4 deletions docs/manual/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ hide:

# GeoNetwork {#toc}

!!! Warning

GeoNetwork `2.10.x` is deprecated and not maintained anymore.

Welcome to GeoNetwork. this documentation is organized into specific guides targeting different audience.

<div class="grid cards" markdown>
Expand Down
20 changes: 11 additions & 9 deletions docs/manual/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,18 @@ theme:
icon: material/weather-sunny
name: Switch to light mode
features:
- content.action.view
- content.action.edit
- content.code.copy
- content.tabs.link
- navigation.tabs
- toc.follow
- navigation.tracking
- navigation.top
- navigation.tabs
- navigation.prune
- navigation.indexes
- toc.follow
- navigation.top
- navigation.footer
- header.autohide
- content.tabs.link
- content.code.copy
- content.action.view
- content.action.edit
- announce.dismiss

# Plugins - install using: pip3 install -r requirements.txt
Expand All @@ -58,6 +59,7 @@ plugins:
glob:
# ignore, used with include-markdown below
- users/managing_metadata/import/importActions.md
- '**/*.rst'
- i18n:
docs_structure: suffix
reconfigure_material: true
Expand All @@ -66,11 +68,11 @@ plugins:
name: English
build: true
default: true
site_name: 'GeoNetwork Opensource (EN)'
site_name: 'GeoNetwork Opensource'
- locale: fr
name: Français
build: !ENV [FRENCH,false]
site_name: 'GeoNetwork Opensource (FR)'
site_name: 'GeoNetwork Opensource'
site_description: Catalogue GeoNetwork pour répertorier, rechercher et examiner les enregistrements.
nav_translations:
Home: Home
Expand Down
6 changes: 6 additions & 0 deletions docs/manual/overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% extends "base.html" %}

{% block outdated %}
GeoNetwork 2.10 is deprecated and not maintained anymore.
<a href="{{ '../' ~ base_url }}"><strong>Click here to go to stable.</strong></a>
{% endblock %}

0 comments on commit 0a2ac0e

Please sign in to comment.