In active
mode content can be pulled from heterogeneous data sources and normalized via plugins, to the configured components/theme.
As your content changes, the site will re-pull the content and update your site in real-time.
The standard generated site comes with 2 sources to demonstrate, how 'active' mode work.
- a local source, which loads content from
./docs
- a remote source, which loads content from a sample Github repository
All content is composed together within a namespace.
A namespace is the scope for aggregated content, represented by the root path.
e.g Our sample docs are aggregated into a namespace called mosaic
and served by the user journey http://localhost:3000/mosaic
Mosaic doc sources are defined by a file called mosaic.config.mjs
Here is how that might look for a standard site.
To tryout local content creation, add a file called./docs/index.mdx
The load http://localhost:3000/local
Each directory should contain an index.mdx
which is the default page, when a page is loaded without a path
Now create other pages and subdirectories and explore how Mosaic, builds your user-journeys from your fileset.
To tryout remote content creation, your standard site comes pre-configured to load our Mosaic sample docs.
Edit the mosaic.config.mjs
and change your repoUrl
and branch
to pull content from other repos.