Skip to content

feat: add show_footer config option to hide footer#32

Open
FernandoCelmer wants to merge 3 commits intodevelopfrom
feature/28
Open

feat: add show_footer config option to hide footer#32
FernandoCelmer wants to merge 3 commits intodevelopfrom
feature/28

Conversation

@FernandoCelmer
Copy link
Member

@FernandoCelmer FernandoCelmer commented Mar 25, 2026

Description

Issue: #28

  • mkdocs_dracula_theme/mkdocs_theme.yml: added show_footer: true as a default config key
  • mkdocs_dracula_theme/base.html: wrapped the footer include block with {% if config.theme.show_footer %} conditional

Motivation and Context

Users who want to hide the "Made with Dracula Theme for MkDocs" footer had no native way to do so. Setting show_footer: false in mkdocs.yml now suppresses it cleanly without requiring a custom_dir override.

Closes #28

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation updated (documentation was updated and published)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@FernandoCelmer FernandoCelmer changed the base branch from main to develop March 25, 2026 00:30
- tests/test_show_footer.py: 6 tests covering default config value,
  footer visibility with show_footer=true/false, and template guard
- pyproject.toml: add pytest, pytest-cov, pyyaml dev dependencies
- .github/workflows/test.yml: CI on Python 3.10/3.11/3.12

Refs #28
FernandoCelmer added a commit that referenced this pull request Mar 25, 2026
test_show_footer.py belongs to PR #32 (feature/28), not here.
feature/29 only contains admonition tests.

Refs #29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

allow hiding footer

2 participants