Skip to content

How to access the site configuration from markdown pages? #10302

Closed Answered by ilg-ul
ilg-ul asked this question in Q&A
Discussion options

You must be logged in to vote

the import is not @generated/config but @generated/docusaurus.config.

That was useful. After this change, the code parsing the package.json is functional. It looks like this:

And the code that uses the configuration looks like this:

Note this is not the recommended approach but probably the most convenient for what you want to do if you don't know React well.

This is a bit concerning. In my s…

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
5 replies
@ilg-ul
Comment options

@slorber
Comment options

slorber Jul 17, 2024
Collaborator

@ilg-ul
Comment options

@ilg-ul
Comment options

@slorber
Comment options

slorber Jul 18, 2024
Collaborator

Comment options

You must be logged in to vote
4 replies
@slorber
Comment options

slorber Jul 18, 2024
Collaborator

@ilg-ul
Comment options

@slorber
Comment options

slorber Jul 18, 2024
Collaborator

@ilg-ul
Comment options

Answer selected by ilg-ul
Comment options

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

slorber Jul 18, 2024
Collaborator

@ilg-ul
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