Skip to content

Commit

Permalink
feat(database): v0.9.0
Browse files Browse the repository at this point in the history
* chore(docs): move to contented
* feat(db): add more mongodb feature parity
  • Loading branch information
kodemon committed Aug 12, 2022
1 parent c3e6cb6 commit ae99716
Show file tree
Hide file tree
Showing 76 changed files with 17,223 additions and 58,948 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -27,6 +27,7 @@ node_modules

# dist & pack

.contented
dist
*.tgz

Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Expand Up @@ -18,6 +18,7 @@
"editor.defaultFormatter": "HookyQR.beautify"
},
"cSpell.words": [
"birthdayresearch",
"bitflag",
"Bitflags",
"BITSTRING",
Expand Down
20 changes: 0 additions & 20 deletions docs/.gitignore

This file was deleted.

41 changes: 0 additions & 41 deletions docs/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/babel.config.js

This file was deleted.

12 changes: 0 additions & 12 deletions docs/blog/2019-05-28-first-blog-post.md

This file was deleted.

44 changes: 0 additions & 44 deletions docs/blog/2019-05-29-long-blog-post.md

This file was deleted.

20 changes: 0 additions & 20 deletions docs/blog/2021-08-01-mdx-blog-post.mdx

This file was deleted.

Binary file not shown.
25 changes: 0 additions & 25 deletions docs/blog/2021-08-26-welcome/index.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/blog/authors.yml

This file was deleted.

66 changes: 66 additions & 0 deletions docs/contented.config.js
@@ -0,0 +1,66 @@
/** @type {import('@birthdayresearch/contented').ContentedConfig} */
module.exports = {
preview: {
name: 'Valkyr',
url: 'https://docs.kodemon.net',
github: {
url: 'https://github.com/kodemon/valkyr',
},
},
processor: {
rootDir: '../',
pipelines: [
{
type: 'Docs',
pattern: ['./README.md', './docs/**/*.md'],
processor: 'md',
fields: {
title: {
type: 'string',
},
},
transform: (file) => {
if (file.path === '/readme') {
file.fields.title = 'Valkyr';
file.path = '/';
file.sections = [];
} else {
file.path = file.path.replaceAll(/^\/docs\/?/g, '/');
file.sections = file.sections.slice(1);
}
return file;
},
sort: (a) => {
return a.path === '/' ? -1 : 0;
},
},
{
type: 'Packages',
pattern: 'packages/**/*.md',
processor: 'md',
fields: {
title: {
type: 'string',
},
sections: {
type: 'string[]',
},
},
transform: (file) => {
file.path = file.path.replaceAll(/\/readme$/g, '');
file.sections = file.fields.sections;
return file;
},
sort: (a, b) => {
if (a.sections.length === 0) {
return -1;
}
if (b.sections.length === 0) {
return 1;
}
return a.sections[0].localeCompare(b.sections[0]);
}
}
]
}
};
15 changes: 0 additions & 15 deletions docs/docs.js

This file was deleted.

103 changes: 0 additions & 103 deletions docs/docusaurus.config.js

This file was deleted.

0 comments on commit ae99716

Please sign in to comment.