Skip to content

Commit

Permalink
Test custom footer
Browse files Browse the repository at this point in the history
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
  • Loading branch information
bact committed Aug 7, 2024
1 parent 06732eb commit 4a3781b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
12 changes: 12 additions & 0 deletions custom_blocks/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{% extends "base.html" %}

{% block footer %}
{{ super() }}
<div class="footer">
<p>
Generated by: spec-parser ({{ config.extra.commit_hash_parser }})
From source files: spdx-spec ({{ config.extra.commit_hash_spec }}) and spdx-3-model ({{ config.extra.commit_hash_model }})
Published on: {{ config.extra.publication_datetime }}
</p>
</div>
{% endblock %}
11 changes: 6 additions & 5 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ copyright: -- DRAFT -- SPDX v3.0.1 Copyright © 2010-2024 Linux Foundation and i
use_directory_urls: true
theme:
name: readthedocs
custom_dir: custom_blocks
sticky_navigation: true
extra:
publication_datetime: '2024-08-07 19:00' # __PUBLICATION_DATETIME__ ; Do not edit
commit_hash_spec: '00000000' # __COMMIT_HASH_SPEC__ ; Do not edit
commit_hash_model: '00000000' # __COMMIT_HASH_MODEL__ ; Do not edit
commit_hash_parser: '00000000' # __COMMIT_HASH_PARSER__ ; Do not edit
plugins:
- search
- mike:
Expand Down Expand Up @@ -61,8 +67,3 @@ nav:
draft_docs: | # for preview with `mkdocs serve`, but excluded from `mkdocs build`
ISO_foreword.md
conformance.md
extra:
publication_datetime: '2024-08-07 19:00' # __PUBLICATION_DATETIME__ ; Do not edit
commit_hash_spec: '000000' # __COMMIT_HASH_SPEC__ ; Do not edit
commit_hash_model: '000000' # __COMMIT_HASH_MODEL__ ; Do not edit
commit_hash_parser: '00000' # __COMMIT_HASH_PARSER__ ; Do not edit
9 changes: 0 additions & 9 deletions overrides/footer.html

This file was deleted.

0 comments on commit 4a3781b

Please sign in to comment.