Skip to content

Commit

Permalink
docs: embed readmes
Browse files Browse the repository at this point in the history
  • Loading branch information
bounoable committed Aug 25, 2022
1 parent 1cbee3c commit 7afe90b
Show file tree
Hide file tree
Showing 16 changed files with 137 additions and 60 deletions.
133 changes: 74 additions & 59 deletions docs/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,71 +71,80 @@ export default defineConfig({
text: 'Aggregates',
collapsible: true,
items: [
{ text: 'Introduction', link: '/guide/aggregates/' },
{
text: 'Creating an Aggregate',
link: '/guide/aggregates/#creating-an-aggregate',
},
{ text: 'Repositories', link: '/guide/aggregates/repositories' },
{
text: 'Event Handling',
link: '/guide/aggregates/event-handling',
},
{
text: 'Command Handling',
link: '/guide/aggregates/command-handling',
text: 'README',
link: '/guide/aggregates/readme.md',
},
// {
// text: 'Introduction',
// link: '/guide/aggregates/',
// },
// {
// text: 'Creating an Aggregate',
// link: '/guide/aggregates/create',
// },
// { text: 'Repositories', link: '/guide/aggregates/repositories' },
// {
// text: 'Event Handling',
// link: '/guide/aggregates/event-handling',
// },
// {
// text: 'Command Handling',
// link: '/guide/aggregates/command-handling',
// },
],
},
{
text: 'Projections',
collapsible: true,
items: [
{ text: 'Introduction', link: '/guide/projections/' },
{ text: 'Scheduling', link: '/guide/projections/scheduling' },
{ text: 'Projection Jobs', link: '/guide/projections/jobs' },
{ text: 'Projection Service', link: '/guide/projections/service' },
{
text: 'Best Practices',
link: '/guide/projections/best-practices',
},
{ text: 'README', link: '/guide/projections/readme' },
// { text: 'Introduction', link: '/guide/projections/' },
// { text: 'Scheduling', link: '/guide/projections/scheduling' },
// { text: 'Projection Jobs', link: '/guide/projections/jobs' },
// { text: 'Projection Service', link: '/guide/projections/service' },
// {
// text: 'Best Practices',
// link: '/guide/projections/best-practices',
// },
],
},
{
text: 'Commands',
collapsible: true,
items: [
{ text: 'Introduction', link: '/guide/commands/' },
{
text: 'Defining Commands',
link: '/guide/commands/#defining-commands',
},
{
text: 'Command Registry',
link: '/guide/command/command-registry',
},
{ text: 'Command Bus', link: '/guide/commands/command-bus' },
{
text: 'Command Handling',
link: '/guide/commands/command-handling',
},
{ text: 'README', link: '/guide/commands/readme' },
// { text: 'Introduction', link: '/guide/commands/' },
// {
// text: 'Defining Commands',
// link: '/guide/commands/#defining-commands',
// },
// {
// text: 'Command Registry',
// link: '/guide/command/command-registry',
// },
// { text: 'Command Bus', link: '/guide/commands/command-bus' },
// {
// text: 'Command Handling',
// link: '/guide/commands/command-handling',
// },
],
},
{
text: 'Process Manages / SAGAs',
collapsible: true,
items: [{ text: 'TODO', link: '/' }],
items: [{ text: 'README', link: '/guide/process-managers/readme' }],
},
{
text: 'Tools & Helpers',
collapsible: true,
collapsed: true,
items: [
{ text: 'Aggregate Lookup', link: '/guide/tools/aggregate-lookup' },
{
text: 'Streaming Helpers',
link: '/guide/tools/streaming-helpers',
},
// { text: 'Aggregate Lookup', link: '/guide/tools/aggregate-lookup' },
// {
// text: 'Streaming Helpers',
// link: '/guide/tools/streaming-helpers',
// },
],
},
{
Expand All @@ -149,34 +158,40 @@ export default defineConfig({
collapsible: true,
collapsed: true,
items: [
{ text: 'Authorization', link: '/guide/modules/authorization' },
// { text: 'Authorization', link: '/guide/modules/authorization' },
],
},
{
text: 'Backends – Event Bus',
text: 'Backends',
collapsible: true,
collapsed: true,
items: [
{ text: 'In-Memory', link: '/guide/backends/event-bus/nats' },
{ text: 'NATS', link: '/guide/backends/event-bus/nats' },
],
},
{
text: 'Backends – Event Store',
collapsible: true,
collapsed: true,
items: [
{
text: 'In-Memory',
link: '/guide/backends/event-store/nats',
},
{
text: 'MongoDB',
link: '/guide/backends/event-store/mongodb',
text: 'Event Bus',
items: [
{
text: 'In-Memory',
link: '/guide/backends/event-bus/in-memory',
},
{ text: 'NATS', link: '/guide/backends/event-bus/nats' },
],
},
{
text: 'Postgres',
link: '/guide/backends/event-store/postgres',
text: 'Event Store',
items: [
{
text: 'In-Memory',
link: '/guide/backends/event-store/in-memory',
},
{
text: 'MongoDB',
link: '/guide/backends/event-store/mongodb',
},
{
text: 'Postgres',
link: '/guide/backends/event-store/postgres',
},
],
},
],
},
Expand Down
3 changes: 3 additions & 0 deletions docs/docs/guide/aggregates/command-handling.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Command Handling

_TBD_
3 changes: 3 additions & 0 deletions docs/docs/guide/aggregates/create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Creating an Aggregate

_TBD_
3 changes: 3 additions & 0 deletions docs/docs/guide/aggregates/event-handling.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Event Handling

_TBD_
3 changes: 3 additions & 0 deletions docs/docs/guide/aggregates/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Aggregates

_TBD_
8 changes: 8 additions & 0 deletions docs/docs/guide/aggregates/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
::: info
Documentation for aggregates has not been written yet but you can read the
README of the `aggregate` package below.
:::

<hr />

<!--@include: ../../../../aggregate/README.md-->
3 changes: 3 additions & 0 deletions docs/docs/guide/aggregates/repositories.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Repositories

_TBD_
3 changes: 3 additions & 0 deletions docs/docs/guide/backends/event-bus/in-memory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# In-Memory Event Bus

_TBD_
3 changes: 3 additions & 0 deletions docs/docs/guide/backends/event-bus/nats.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# NATS Event Bus

_TBD_
3 changes: 3 additions & 0 deletions docs/docs/guide/backends/event-store/in-memory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# In-Memory Event Store

_TBD_
3 changes: 3 additions & 0 deletions docs/docs/guide/backends/event-store/mongodb.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# MongoDB Event Store

_TBD_
3 changes: 3 additions & 0 deletions docs/docs/guide/backends/event-store/postgres.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Postgres Event Store

_TBD_
8 changes: 8 additions & 0 deletions docs/docs/guide/commands/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
::: info
Documentation for commands has not been written yet but you can read the
README of the `command` package below.
:::

<hr />

<!--@include: ../../../../command/README.md-->
8 changes: 8 additions & 0 deletions docs/docs/guide/process-managers/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
::: info
Documentation for process anagers has not been written yet but you can read the
README of the `saga` package below.
:::

<hr />

<!--@include: ../../../../saga/README.md-->
8 changes: 8 additions & 0 deletions docs/docs/guide/projections/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
::: info
Documentation for projections has not been written yet but you can read the
README of the `projection` package below.
:::

<hr />

<!--@include: ../../../../projection/README.md-->
2 changes: 1 addition & 1 deletion docs/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
plugins: { 'postcss-nesting': {}, tailwindcss: {} },
plugins: [require('postcss-nesting'), require('tailwindcss')],
}

1 comment on commit 7afe90b

@vercel
Copy link

@vercel vercel bot commented on 7afe90b Aug 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

goes – ./

goes-modernice.vercel.app
goes-git-main-modernice.vercel.app
goes.modernice.dev

Please sign in to comment.