Skip to content

Draft illustrating how we might document feeds & schemas #23

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

Closed
wants to merge 3 commits into from

Conversation

Christian-MK
Copy link
Collaborator

@ross-spencer can we nest pages this deeply in docusaurus?
I envisioned something like

├─Introduction
├─Orcfax solution
├─Fact token
├─FAQ
├─Feeds
│   ├─ Overview // somewhere for high level definitions
|   ├─CER
|   |   ├─ CEX
│   |   |   ├─ fact-statment.json // schema.org definitions for each type and property
│   |   |   ├─ fact-statment-datum.json
│   |   |   ├─ message.json
│   |   |   └─ validation.json
│   |   └─ DEX
│   |   |   ├─ fact-statment.json // schema.org definitions for each type and property
│   |   |   ├─ fact-statment-datum.json
│   |   |   ├─ message.json
│   |   |   └─ validation.json
|   └─ Other // allows us to continue adding other feed types
├─ITN
├─Node operation
└─Developer manual

@ross-spencer
Copy link
Member

Never thought we could use JSON in the docs like this but it looks like a really good start, +1 here.

You've tagged Gabriel, so let's see if he can use this approach, otherwise happy to brainstorm on other ideas if not.

@Christian-MK
Copy link
Collaborator Author

Never thought we could use JSON in the docs like this

To be clear. I dont know that this can/should be done. I was only reacting to what @gchartier mentioned in our meeting the other day.

You didn't answer my question though about whether we can have a directory in docusaurus with nested pages as I have illustrated in my example. I feel like it must be possible, but couldn't fins the answer to my question in the documentation

@ross-spencer
Copy link
Member

ross-spencer commented Jul 29, 2024

Oh, I didn't realize there was a further question. Still not quite sure, but it looks like you tried it and it built?

I also tried something here following your approach - if we install the raw-loader extension then we can render the schema in the pages as well as deliver them as JSON. The layout would look similar to yours still but json files would be added to the static dir, e.g. static/schema/cer/cex/... and so on.

#24

What do you think?

NB. the nesting looks okay too?

image

@Christian-MK Christian-MK deleted the schema-documentation branch August 19, 2024 13:20
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

Successfully merging this pull request may close these issues.

2 participants