This is Next project that generates static pages based on .mmd file and yml files
To start development mode run:
npm run dev
To build static pages run: npm run build generated files can be find in /out directory
Flow chart is generated based on questionnaire.mmd file.
- Blocks with external links automatically redirect users to external page. For example
https://github.com - Blocks with relative links point to directories in
/storage/solutions. For examplejavawill point to/storage/solutions/java. This block will display solutions page with technologies stored in.ymlfiles in/storage/solutions/javadirectory
Additional data is stored in yml files.
If you want to add additional data to a mermaid block just add [mermaidBlockId].yml to /storage/questions
The block yml file accepts:
- pros: string[]
- cons: string[]
- usuallyUsed: string[]
- toolsAndUseCases: {title: string, text: string}[]
If you want to add information about solutions just add [technologyName].yml to /storage/questions/[technology] and link it in .mmd file
The solution yml file accepts:
- name: string
- description: string
- pros: string[]
- cons: string[]
- url: string
In .env file you can specify:
- FIRST_QUESTION_URL - should point to the first question. This is used to automatically redirect user to first question when he enter
index.htmland is also used onStart overbutton - CLOSE_URL - should point to cardano-foundation page I set it to
https://cardanofoundation.org/ledger-sync. It is used when user clicksXbutton in the top navigation