Skip to content

Exclude a specific doc category based on different environments? #5181

Answered by slorber
sparanoid asked this question in Q&A
Discussion options

You must be logged in to vote

This is something some Facebook sites are doing: filter the sidebars.js file with your own logic:
https://github.com/facebook/relay/blob/main/website/sidebars.js

You can run any nodejs code there, including reading process.env

However I don't know how they do to make the URLs unavailable, maybe the docs are simply not added to the docs folder?

This PR adds an exclude config to all content plugins, it might help you achieve what you want: #5173

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@jknoxville
Comment options

@slorber
Comment options

slorber Jul 16, 2021
Collaborator

@sparanoid
Comment options

@slorber
Comment options

slorber Jul 19, 2021
Collaborator

@slorber
Comment options

slorber Jul 20, 2021
Collaborator

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