Skip to content

Only display tags on serve #8110

Answered by mocdaniel
rachel-rigdon-sp asked this question in Q&A
Discussion options

You must be logged in to vote

Exactly :) just make sure to flip the default in your mkdocs.yaml from false to true, then pass the env variable in your build scenario as you outlined already.

That way, tags will always shop up when your site is served directly by mkdocs, but won't be displayed when the site's build is being served (e.g. by a web server in production).

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mocdaniel
Comment options

Answer selected by rachel-rigdon-sp
@rachel-rigdon-sp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants