Generalise external repo configs together with refactoring the wiki cli #481
Replies: 2 comments 3 replies
-
So here are my thoughts on this. Goals
ArchitectureI propose a modular architecture, leveraging the Docusaurus build system as much as possible. The system would consist of two parts: modules and an IOTA Wiki tool. Modules
Exampledirectory structure
docusaurus.config.js
package.json
IOTA Wiki toolA published package that provides some convenience scripts, like |
Beta Was this translation helpful? Give feedback.
-
What would you think about the following: In the new build system we currently require all documentation modules to have their own
Since the above is not relevant when testing locally, but only when combining modules in builds higher up in the hierarchy, and we know exactly which modules we are combining, what would you think about creating some sort of "config merge function" that all higher builds can use and takes care of 1 and 2 above? What I would let that merge function do is:
This way the configuration of modules can just use paths relative to their own directory without having to remember to do the path resolving and plugin ids are always unique in builds higher up in the build hierarchy. |
Beta Was this translation helpful? Give feedback.
-
With the knowledge we have now, we should start generalizing configurations and try to reduce duplicates. In this discussion, we should discuss the best approach to solve this problem.
Some ideas are:
Since the wiki CLI is closely related to these changes, we should also revise the wiki CLI.
Some necessary changes are:
Beta Was this translation helpful? Give feedback.
All reactions