Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would it be possible to define info in a data file ? #224

Open
Carreau opened this issue May 27, 2024 · 2 comments
Open

Would it be possible to define info in a data file ? #224

Carreau opened this issue May 27, 2024 · 2 comments

Comments

@Carreau
Copy link
Member

Carreau commented May 27, 2024

Mostly people.md and likely a few other things.

On Jupyter.github.io most pages are generated from a yaml data file:

https://github.com/jupyter/jupyter.github.io/blob/main/about.html#L22-L74 for example.

This would make it easier to include the same informations on multiple page instead of having to synchronize instead of always having to jump between multiple pages.

@choldgraf
Copy link
Contributor

I do this all the time with Sphinx, definitely possible!

One example is the executablebooks gallery

https://executablebooks.org/en/latest/gallery/

Which is generated from a yaml file. The code to do that is here

https://github.com/executablebooks/meta/blob/main/docs%2Fconf.py#L104

You could also do this outside of conf.py if you used a jupyter notebook w a cell that outputted markdown (so it'd be parsed as Myst)

@westurner
Copy link

westurner commented May 28, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants