Fix MkDocs workflow errors and update custom home page template#789
Merged
Conversation
Three errors from the deploy workflow: 1. docs_dir: . → docs_dir: docs MkDocs no longer allows docs_dir to be the parent directory of mkdocs.yml. Changed to docs/ subdirectory. 2. site_dir conflict site/ was inside docs_dir (root). Now that docs_dir is docs/, site/ sits at the repo root and is no longer nested inside it. 3. tags_file deprecated → removed Replaced `tags_file: tags.md` with bare `- tags` plugin entry, and removed the Tags nav entry that depended on it. Also added a workflow step that symlinks repo-root content trees (topics/, getting-started/, projects/, troubleshooting/, CONTRIBUTING.md, ROADMAP.md) into docs/ before the build so MkDocs can resolve all nav paths without moving any files. Updated extra_css/extra_javascript paths from docs/stylesheets/ and docs/javascripts/ to stylesheets/ and javascripts/ (now relative to docs_dir). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0145wKykex72kkJtrFNarz9M
Move hero content from {% block content %} into {% block tabs %} (after
super()) — the correct pattern for Material 9.x custom home pages.
Content block was silently ignored because Material renders sidebars
outside the content block, resulting in the stock article view.
Also add docs/CNAME so the custom domain devops-basics.thedevopshub.org
survives mkdocs gh-deploy --force --clean which wipes the gh-pages branch.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0145wKykex72kkJtrFNarz9M
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix MkDocs workflow errors and update custom home page template