create-mordoc-app 0.0.10 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +7 -0
- package/README.md +0 -4
- package/bin/create.js +106 -0
- package/package.json +7 -7
- package/template/config/assets/favicon.ico +0 -0
- package/template/config/assets/logo-dark.svg +3 -0
- package/template/config/assets/logo.svg +3 -0
- package/template/config/navigation/sidenav.yaml +8 -0
- package/template/config/site.json +6 -0
- package/template/config/theme.css +8 -0
- package/template/content/en/getting-started.md +45 -0
- package/template/content/en/index.md +26 -0
- package/template/content/en/second-page.md +7 -0
- package/template/content/en/third-page.md +7 -0
- package/template/public/images/artwork.png +0 -0
- package/index.js +0 -34
package/LICENSE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright 2026 Shiva Varanasi
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
package/bin/create.js
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const fs = require('fs');
|
|
6
|
+
const path = require('path');
|
|
7
|
+
const { execSync, spawnSync } = require('child_process');
|
|
8
|
+
|
|
9
|
+
const start = Date.now();
|
|
10
|
+
const projectName = process.argv[2];
|
|
11
|
+
|
|
12
|
+
if (!projectName) {
|
|
13
|
+
console.error('Please specify a project name:');
|
|
14
|
+
console.error(' npx create-mordoc-app my-docs');
|
|
15
|
+
process.exit(1);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const projectDir = path.resolve(process.cwd(), projectName);
|
|
19
|
+
|
|
20
|
+
if (fs.existsSync(projectDir)) {
|
|
21
|
+
console.error(`Error: directory "${projectName}" already exists.`);
|
|
22
|
+
process.exit(1);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Fetch latest mordoc version from npm
|
|
26
|
+
let mordocVersion;
|
|
27
|
+
try {
|
|
28
|
+
mordocVersion = execSync('npm view mordoc version', { encoding: 'utf8' }).trim();
|
|
29
|
+
} catch (e) {
|
|
30
|
+
console.error('Error: could not fetch mordoc version from npm. Are you online?');
|
|
31
|
+
process.exit(1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Copy template into project directory
|
|
35
|
+
const templateDir = path.join(__dirname, '..', 'template');
|
|
36
|
+
|
|
37
|
+
function copyDir(src, dest) {
|
|
38
|
+
fs.mkdirSync(dest, { recursive: true });
|
|
39
|
+
for (const entry of fs.readdirSync(src, { withFileTypes: true })) {
|
|
40
|
+
const srcPath = path.join(src, entry.name);
|
|
41
|
+
const destPath = path.join(dest, entry.name);
|
|
42
|
+
if (entry.isDirectory()) {
|
|
43
|
+
copyDir(srcPath, destPath);
|
|
44
|
+
} else {
|
|
45
|
+
fs.copyFileSync(srcPath, destPath);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
copyDir(templateDir, projectDir);
|
|
51
|
+
|
|
52
|
+
// Substitute {{projectName}} in config/site.json
|
|
53
|
+
const siteJsonPath = path.join(projectDir, 'config', 'site.json');
|
|
54
|
+
const siteJson = fs.readFileSync(siteJsonPath, 'utf8');
|
|
55
|
+
fs.writeFileSync(siteJsonPath, siteJson.replace(/\{\{projectName\}\}/g, projectName));
|
|
56
|
+
|
|
57
|
+
// Generate .gitignore
|
|
58
|
+
fs.writeFileSync(
|
|
59
|
+
path.join(projectDir, '.gitignore'),
|
|
60
|
+
'node_modules/\ndist/\n'
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
// Generate package.json
|
|
64
|
+
const pkg = {
|
|
65
|
+
name: projectName,
|
|
66
|
+
version: '0.0.1',
|
|
67
|
+
private: true,
|
|
68
|
+
scripts: {
|
|
69
|
+
dev: 'mordoc dev',
|
|
70
|
+
build: 'mordoc build',
|
|
71
|
+
},
|
|
72
|
+
devDependencies: {
|
|
73
|
+
mordoc: `^${mordocVersion}`,
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
fs.writeFileSync(
|
|
77
|
+
path.join(projectDir, 'package.json'),
|
|
78
|
+
JSON.stringify(pkg, null, 2) + '\n'
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
// Run npm install
|
|
82
|
+
console.log(`\nScaffolding "${projectName}"...`);
|
|
83
|
+
const result = spawnSync('npm', ['install'], {
|
|
84
|
+
cwd: projectDir,
|
|
85
|
+
stdio: 'inherit',
|
|
86
|
+
shell: true,
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
if (result.status !== 0) {
|
|
90
|
+
console.error('\nError: npm install failed.');
|
|
91
|
+
process.exit(1);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const duration = ((Date.now() - start) / 1000).toFixed(1);
|
|
95
|
+
|
|
96
|
+
console.log(`\n✨ Success! Created ${projectName} in ${duration}s\n`);
|
|
97
|
+
console.log('Your documentation project is ready!\n');
|
|
98
|
+
console.log('Get started with:\n');
|
|
99
|
+
console.log(` cd ${projectName}\n`);
|
|
100
|
+
console.log('Next steps:\n');
|
|
101
|
+
console.log(' 1. Edit your content in content directory');
|
|
102
|
+
console.log(' 2. Customize the configuration for your documentation website in config directory');
|
|
103
|
+
console.log(' 4. Run npm run dev to preview locally');
|
|
104
|
+
console.log(' 5. Run npm run build to generate your site\n');
|
|
105
|
+
console.log('Full documentation at https://mordoc.dev\n');
|
|
106
|
+
console.log('Happy documenting! 📚\n');
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-mordoc-app",
|
|
3
|
-
"
|
|
3
|
+
"repository": {
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "https://github.com/shiva-varanasi/create-mordoc-app.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.0
|
|
7
|
+
"version": "1.0.0",
|
|
8
8
|
"description": "Create Mordoc documentation sites with one command",
|
|
9
|
-
"main": "index.js",
|
|
10
9
|
"bin": {
|
|
11
|
-
"create-mordoc-app": "./
|
|
10
|
+
"create-mordoc-app": "./bin/create.js"
|
|
12
11
|
},
|
|
12
|
+
"files": [
|
|
13
|
+
"bin",
|
|
14
|
+
"template"
|
|
15
|
+
],
|
|
13
16
|
"author": "Shiva Varanasi",
|
|
14
17
|
"license": "MIT",
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"mordoc": "^0.1.13"
|
|
17
|
-
},
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">=18.0.0"
|
|
20
20
|
}
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="87" height="17" viewBox="0 0 87 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M5.57303e-06 -8.91685e-05H2.67827L5.88069 5.7911H6.00853L9.21094 -8.91685e-05H11.8892L7.12714 8.2073V13.0908H4.76208V8.2073L5.57303e-06 -8.91685e-05ZM15.921 13.2826C14.9622 13.2826 14.1312 13.0716 13.4281 12.6498C12.725 12.2279 12.1795 11.6377 11.7917 10.8792C11.4082 10.1206 11.2164 9.23429 11.2164 8.22008C11.2164 7.20588 11.4082 6.31738 11.7917 5.5546C12.1795 4.79181 12.725 4.19948 13.4281 3.77761C14.1312 3.35574 14.9622 3.1448 15.921 3.1448C16.8798 3.1448 17.7108 3.35574 18.4139 3.77761C19.117 4.19948 19.6603 4.79181 20.0439 5.5546C20.4316 6.31738 20.6255 7.20588 20.6255 8.22008C20.6255 9.23429 20.4316 10.1206 20.0439 10.8792C19.6603 11.6377 19.117 12.2279 18.4139 12.6498C17.7108 13.0716 16.8798 13.2826 15.921 13.2826ZM15.9338 11.4289C16.4537 11.4289 16.8883 11.2861 17.2378 11.0006C17.5872 10.7108 17.8471 10.3231 18.0176 9.83727C18.1923 9.35147 18.2797 8.81028 18.2797 8.21369C18.2797 7.61284 18.1923 7.06951 18.0176 6.58372C17.8471 6.09366 17.5872 5.70375 17.2378 5.41397C16.8883 5.1242 16.4537 4.97931 15.9338 4.97931C15.4011 4.97931 14.9579 5.1242 14.6042 5.41397C14.2548 5.70375 13.9927 6.09366 13.818 6.58372C13.6476 7.06951 13.5623 7.61284 13.5623 8.21369C13.5623 8.81028 13.6476 9.35147 13.818 9.83727C13.9927 10.3231 14.2548 10.7108 14.6042 11.0006C14.9579 11.2861 15.4011 11.4289 15.9338 11.4289ZM28.8473 8.96156V3.27264H31.1612V13.0908H28.9176V11.3458H28.8153C28.5938 11.8955 28.2294 12.3451 27.7223 12.6945C27.2195 13.0439 26.5994 13.2187 25.8622 13.2187C25.2188 13.2187 24.6499 13.0759 24.1555 12.7904C23.6655 12.5006 23.282 12.0809 23.005 11.5312C22.728 10.9772 22.5895 10.3081 22.5895 9.52406V3.27264H24.9034V9.1661C24.9034 9.78826 25.0739 10.2826 25.4148 10.6491C25.7557 11.0155 26.2031 11.1988 26.7571 11.1988C27.098 11.1988 27.4283 11.1157 27.7479 10.9495C28.0675 10.7833 28.3296 10.5361 28.5341 10.208C28.7429 9.87562 28.8473 9.46014 28.8473 8.96156ZM33.5407 13.0908V3.27264H35.7843V4.909H35.8865C36.0655 4.34224 36.3723 3.90545 36.807 3.59863C37.2459 3.28755 37.7466 3.13201 38.3091 3.13201C38.437 3.13201 38.5797 3.13841 38.7374 3.15119C38.8993 3.15971 39.0336 3.17463 39.1401 3.19593V5.32448C39.0421 5.29039 38.8865 5.26056 38.6735 5.235C38.4647 5.20517 38.2623 5.19025 38.0662 5.19025C37.6444 5.19025 37.2651 5.28187 36.9285 5.46511C36.5961 5.64409 36.334 5.89338 36.1422 6.21298C35.9505 6.53258 35.8546 6.90119 35.8546 7.3188V13.0908H33.5407ZM45.2445 13.0908V-8.91685e-05H47.616V11.1029H53.3816V13.0908H45.2445ZM59.6202 13.2826C58.6614 13.2826 57.8304 13.0716 57.1273 12.6498C56.4242 12.2279 55.8787 11.6377 55.491 10.8792C55.1074 10.1206 54.9157 9.23429 54.9157 8.22008C54.9157 7.20588 55.1074 6.31738 55.491 5.5546C55.8787 4.79181 56.4242 4.19948 57.1273 3.77761C57.8304 3.35574 58.6614 3.1448 59.6202 3.1448C60.579 3.1448 61.41 3.35574 62.1131 3.77761C62.8162 4.19948 63.3596 4.79181 63.7431 5.5546C64.1309 6.31738 64.3248 7.20588 64.3248 8.22008C64.3248 9.23429 64.1309 10.1206 63.7431 10.8792C63.3596 11.6377 62.8162 12.2279 62.1131 12.6498C61.41 13.0716 60.579 13.2826 59.6202 13.2826ZM59.633 11.4289C60.1529 11.4289 60.5875 11.2861 60.937 11.0006C61.2864 10.7108 61.5463 10.3231 61.7168 9.83727C61.8915 9.35147 61.9789 8.81028 61.9789 8.21369C61.9789 7.61284 61.8915 7.06951 61.7168 6.58372C61.5463 6.09366 61.2864 5.70375 60.937 5.41397C60.5875 5.1242 60.1529 4.97931 59.633 4.97931C59.1003 4.97931 58.6571 5.1242 58.3035 5.41397C57.954 5.70375 57.6919 6.09366 57.5172 6.58372C57.3468 7.06951 57.2615 7.61284 57.2615 8.21369C57.2615 8.81028 57.3468 9.35147 57.5172 9.83727C57.6919 10.3231 57.954 10.7108 58.3035 11.0006C58.6571 11.2861 59.1003 11.4289 59.633 11.4289ZM70.5586 16.9772C69.7276 16.9772 69.0139 16.8643 68.4173 16.6384C67.8207 16.4168 67.3413 16.1185 66.9791 15.7435C66.6168 15.3685 66.3654 14.953 66.2248 14.4971L68.3086 13.9921C68.4023 14.1839 68.5387 14.3735 68.7177 14.561C68.8967 14.7528 69.1374 14.9104 69.44 15.034C69.7468 15.1618 70.1325 15.2258 70.597 15.2258C71.2532 15.2258 71.7965 15.066 72.2269 14.7464C72.6573 14.431 72.8725 13.9111 72.8725 13.1867V11.3266H72.7575C72.6381 11.5653 72.4634 11.8103 72.2333 12.0617C72.0075 12.3131 71.707 12.5241 71.332 12.6945C70.9613 12.865 70.4947 12.9502 69.9322 12.9502C69.1779 12.9502 68.494 12.7733 67.8803 12.4197C67.271 12.0617 66.7852 11.529 66.4229 10.8216C66.065 10.11 65.886 9.21937 65.886 8.14977C65.886 7.07164 66.065 6.16184 66.4229 5.42037C66.7852 4.67463 67.2731 4.11 67.8867 3.72647C68.5004 3.33869 69.1843 3.1448 69.9386 3.1448C70.5139 3.1448 70.9869 3.24281 71.3576 3.43883C71.7326 3.63059 72.0309 3.86284 72.2525 4.13556C72.4741 4.40403 72.6424 4.65758 72.7575 4.89622H72.8853V3.27264H75.1673V13.2506C75.1673 14.0901 74.967 14.7847 74.5664 15.3344C74.1658 15.8841 73.6183 16.2954 72.9237 16.5681C72.2291 16.8408 71.4407 16.9772 70.5586 16.9772ZM70.5778 11.1349C71.0678 11.1349 71.4854 11.0155 71.8306 10.7769C72.1758 10.5383 72.4379 10.1952 72.6168 9.74778C72.7958 9.30034 72.8853 8.76341 72.8853 8.13699C72.8853 7.51909 72.7958 6.97789 72.6168 6.51341C72.4421 6.04892 72.1822 5.68883 71.837 5.43315C71.4961 5.17321 71.0764 5.04323 70.5778 5.04323C70.0622 5.04323 69.6318 5.17747 69.2866 5.44593C68.9414 5.7144 68.6815 6.08301 68.5068 6.55176C68.332 7.01625 68.2447 7.54466 68.2447 8.13699C68.2447 8.73784 68.332 9.26412 68.5068 9.71582C68.6857 10.1633 68.9478 10.5127 69.293 10.7641C69.6424 11.0113 70.0707 11.1349 70.5778 11.1349ZM81.8214 13.2826C80.8626 13.2826 80.0316 13.0716 79.3285 12.6498C78.6254 12.2279 78.0799 11.6377 77.6921 10.8792C77.3086 10.1206 77.1168 9.23429 77.1168 8.22008C77.1168 7.20588 77.3086 6.31738 77.6921 5.5546C78.0799 4.79181 78.6254 4.19948 79.3285 3.77761C80.0316 3.35574 80.8626 3.1448 81.8214 3.1448C82.7802 3.1448 83.6112 3.35574 84.3143 3.77761C85.0174 4.19948 85.5607 4.79181 85.9443 5.5546C86.332 6.31738 86.5259 7.20588 86.5259 8.22008C86.5259 9.23429 86.332 10.1206 85.9443 10.8792C85.5607 11.6377 85.0174 12.2279 84.3143 12.6498C83.6112 13.0716 82.7802 13.2826 81.8214 13.2826ZM81.8342 11.4289C82.3541 11.4289 82.7887 11.2861 83.1381 11.0006C83.4876 10.7108 83.7475 10.3231 83.918 9.83727C84.0927 9.35147 84.18 8.81028 84.18 8.21369C84.18 7.61284 84.0927 7.06951 83.918 6.58372C83.7475 6.09366 83.4876 5.70375 83.1381 5.41397C82.7887 5.1242 82.3541 4.97931 81.8342 4.97931C81.3015 4.97931 80.8583 5.1242 80.5046 5.41397C80.1552 5.70375 79.8931 6.09366 79.7184 6.58372C79.5479 7.06951 79.4627 7.61284 79.4627 8.21369C79.4627 8.81028 79.5479 9.35147 79.7184 9.83727C79.8931 10.3231 80.1552 10.7108 80.5046 11.0006C80.8583 11.2861 81.3015 11.4289 81.8342 11.4289Z" fill="#EBEBEB"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="87" height="17" viewBox="0 0 87 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M5.57303e-06 -8.91685e-05H2.67827L5.88069 5.7911H6.00853L9.21094 -8.91685e-05H11.8892L7.12714 8.2073V13.0908H4.76208V8.2073L5.57303e-06 -8.91685e-05ZM15.921 13.2826C14.9622 13.2826 14.1312 13.0716 13.4281 12.6498C12.725 12.2279 12.1795 11.6377 11.7917 10.8792C11.4082 10.1206 11.2164 9.23429 11.2164 8.22008C11.2164 7.20588 11.4082 6.31738 11.7917 5.5546C12.1795 4.79181 12.725 4.19948 13.4281 3.77761C14.1312 3.35574 14.9622 3.1448 15.921 3.1448C16.8798 3.1448 17.7108 3.35574 18.4139 3.77761C19.117 4.19948 19.6603 4.79181 20.0439 5.5546C20.4316 6.31738 20.6255 7.20588 20.6255 8.22008C20.6255 9.23429 20.4316 10.1206 20.0439 10.8792C19.6603 11.6377 19.117 12.2279 18.4139 12.6498C17.7108 13.0716 16.8798 13.2826 15.921 13.2826ZM15.9338 11.4289C16.4537 11.4289 16.8883 11.2861 17.2378 11.0006C17.5872 10.7108 17.8471 10.3231 18.0176 9.83727C18.1923 9.35147 18.2797 8.81028 18.2797 8.21369C18.2797 7.61284 18.1923 7.06951 18.0176 6.58372C17.8471 6.09366 17.5872 5.70375 17.2378 5.41397C16.8883 5.1242 16.4537 4.97931 15.9338 4.97931C15.4011 4.97931 14.9579 5.1242 14.6042 5.41397C14.2548 5.70375 13.9927 6.09366 13.818 6.58372C13.6476 7.06951 13.5623 7.61284 13.5623 8.21369C13.5623 8.81028 13.6476 9.35147 13.818 9.83727C13.9927 10.3231 14.2548 10.7108 14.6042 11.0006C14.9579 11.2861 15.4011 11.4289 15.9338 11.4289ZM28.8473 8.96156V3.27264H31.1612V13.0908H28.9176V11.3458H28.8153C28.5938 11.8955 28.2294 12.3451 27.7223 12.6945C27.2195 13.0439 26.5994 13.2187 25.8622 13.2187C25.2188 13.2187 24.6499 13.0759 24.1555 12.7904C23.6655 12.5006 23.282 12.0809 23.005 11.5312C22.728 10.9772 22.5895 10.3081 22.5895 9.52406V3.27264H24.9034V9.1661C24.9034 9.78826 25.0739 10.2826 25.4148 10.6491C25.7557 11.0155 26.2031 11.1988 26.7571 11.1988C27.098 11.1988 27.4283 11.1157 27.7479 10.9495C28.0675 10.7833 28.3296 10.5361 28.5341 10.208C28.7429 9.87562 28.8473 9.46014 28.8473 8.96156ZM33.5407 13.0908V3.27264H35.7843V4.909H35.8865C36.0655 4.34224 36.3723 3.90545 36.807 3.59863C37.2459 3.28755 37.7466 3.13201 38.3091 3.13201C38.437 3.13201 38.5797 3.13841 38.7374 3.15119C38.8993 3.15971 39.0336 3.17463 39.1401 3.19593V5.32448C39.0421 5.29039 38.8865 5.26056 38.6735 5.235C38.4647 5.20517 38.2623 5.19025 38.0662 5.19025C37.6444 5.19025 37.2651 5.28187 36.9285 5.46511C36.5961 5.64409 36.334 5.89338 36.1422 6.21298C35.9505 6.53258 35.8546 6.90119 35.8546 7.3188V13.0908H33.5407ZM45.2445 13.0908V-8.91685e-05H47.616V11.1029H53.3816V13.0908H45.2445ZM59.6202 13.2826C58.6614 13.2826 57.8304 13.0716 57.1273 12.6498C56.4242 12.2279 55.8787 11.6377 55.491 10.8792C55.1074 10.1206 54.9157 9.23429 54.9157 8.22008C54.9157 7.20588 55.1074 6.31738 55.491 5.5546C55.8787 4.79181 56.4242 4.19948 57.1273 3.77761C57.8304 3.35574 58.6614 3.1448 59.6202 3.1448C60.579 3.1448 61.41 3.35574 62.1131 3.77761C62.8162 4.19948 63.3596 4.79181 63.7431 5.5546C64.1309 6.31738 64.3248 7.20588 64.3248 8.22008C64.3248 9.23429 64.1309 10.1206 63.7431 10.8792C63.3596 11.6377 62.8162 12.2279 62.1131 12.6498C61.41 13.0716 60.579 13.2826 59.6202 13.2826ZM59.633 11.4289C60.1529 11.4289 60.5875 11.2861 60.937 11.0006C61.2864 10.7108 61.5463 10.3231 61.7168 9.83727C61.8915 9.35147 61.9789 8.81028 61.9789 8.21369C61.9789 7.61284 61.8915 7.06951 61.7168 6.58372C61.5463 6.09366 61.2864 5.70375 60.937 5.41397C60.5875 5.1242 60.1529 4.97931 59.633 4.97931C59.1003 4.97931 58.6571 5.1242 58.3035 5.41397C57.954 5.70375 57.6919 6.09366 57.5172 6.58372C57.3468 7.06951 57.2615 7.61284 57.2615 8.21369C57.2615 8.81028 57.3468 9.35147 57.5172 9.83727C57.6919 10.3231 57.954 10.7108 58.3035 11.0006C58.6571 11.2861 59.1003 11.4289 59.633 11.4289ZM70.5586 16.9772C69.7276 16.9772 69.0139 16.8643 68.4173 16.6384C67.8207 16.4168 67.3413 16.1185 66.9791 15.7435C66.6168 15.3685 66.3654 14.953 66.2248 14.4971L68.3086 13.9921C68.4023 14.1839 68.5387 14.3735 68.7177 14.561C68.8967 14.7528 69.1374 14.9104 69.44 15.034C69.7468 15.1618 70.1325 15.2258 70.597 15.2258C71.2532 15.2258 71.7965 15.066 72.2269 14.7464C72.6573 14.431 72.8725 13.9111 72.8725 13.1867V11.3266H72.7575C72.6381 11.5653 72.4634 11.8103 72.2333 12.0617C72.0075 12.3131 71.707 12.5241 71.332 12.6945C70.9613 12.865 70.4947 12.9502 69.9322 12.9502C69.1779 12.9502 68.494 12.7733 67.8803 12.4197C67.271 12.0617 66.7852 11.529 66.4229 10.8216C66.065 10.11 65.886 9.21937 65.886 8.14977C65.886 7.07164 66.065 6.16184 66.4229 5.42037C66.7852 4.67463 67.2731 4.11 67.8867 3.72647C68.5004 3.33869 69.1843 3.1448 69.9386 3.1448C70.5139 3.1448 70.9869 3.24281 71.3576 3.43883C71.7326 3.63059 72.0309 3.86284 72.2525 4.13556C72.4741 4.40403 72.6424 4.65758 72.7575 4.89622H72.8853V3.27264H75.1673V13.2506C75.1673 14.0901 74.967 14.7847 74.5664 15.3344C74.1658 15.8841 73.6183 16.2954 72.9237 16.5681C72.2291 16.8408 71.4407 16.9772 70.5586 16.9772ZM70.5778 11.1349C71.0678 11.1349 71.4854 11.0155 71.8306 10.7769C72.1758 10.5383 72.4379 10.1952 72.6168 9.74778C72.7958 9.30034 72.8853 8.76341 72.8853 8.13699C72.8853 7.51909 72.7958 6.97789 72.6168 6.51341C72.4421 6.04892 72.1822 5.68883 71.837 5.43315C71.4961 5.17321 71.0764 5.04323 70.5778 5.04323C70.0622 5.04323 69.6318 5.17747 69.2866 5.44593C68.9414 5.7144 68.6815 6.08301 68.5068 6.55176C68.332 7.01625 68.2447 7.54466 68.2447 8.13699C68.2447 8.73784 68.332 9.26412 68.5068 9.71582C68.6857 10.1633 68.9478 10.5127 69.293 10.7641C69.6424 11.0113 70.0707 11.1349 70.5778 11.1349ZM81.8214 13.2826C80.8626 13.2826 80.0316 13.0716 79.3285 12.6498C78.6254 12.2279 78.0799 11.6377 77.6921 10.8792C77.3086 10.1206 77.1168 9.23429 77.1168 8.22008C77.1168 7.20588 77.3086 6.31738 77.6921 5.5546C78.0799 4.79181 78.6254 4.19948 79.3285 3.77761C80.0316 3.35574 80.8626 3.1448 81.8214 3.1448C82.7802 3.1448 83.6112 3.35574 84.3143 3.77761C85.0174 4.19948 85.5607 4.79181 85.9443 5.5546C86.332 6.31738 86.5259 7.20588 86.5259 8.22008C86.5259 9.23429 86.332 10.1206 85.9443 10.8792C85.5607 11.6377 85.0174 12.2279 84.3143 12.6498C83.6112 13.0716 82.7802 13.2826 81.8214 13.2826ZM81.8342 11.4289C82.3541 11.4289 82.7887 11.2861 83.1381 11.0006C83.4876 10.7108 83.7475 10.3231 83.918 9.83727C84.0927 9.35147 84.18 8.81028 84.18 8.21369C84.18 7.61284 84.0927 7.06951 83.918 6.58372C83.7475 6.09366 83.4876 5.70375 83.1381 5.41397C82.7887 5.1242 82.3541 4.97931 81.8342 4.97931C81.3015 4.97931 80.8583 5.1242 80.5046 5.41397C80.1552 5.70375 79.8931 6.09366 79.7184 6.58372C79.5479 7.06951 79.4627 7.61284 79.4627 8.21369C79.4627 8.81028 79.5479 9.35147 79.7184 9.83727C79.8931 10.3231 80.1552 10.7108 80.5046 11.0006C80.8583 11.2861 81.3015 11.4289 81.8342 11.4289Z" fill="#1C1C1C"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Getting Started
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
A short introduction to this page. Replace this with your own content.
|
|
6
|
+
|
|
7
|
+
## Section heading
|
|
8
|
+
|
|
9
|
+
This is a paragraph. You can write content in standard Markdown — **bold**, *italic*, `inline code`, and [links](https://example.com) all work as expected.
|
|
10
|
+
|
|
11
|
+
### Subheading
|
|
12
|
+
|
|
13
|
+
- List item one
|
|
14
|
+
- List item two
|
|
15
|
+
- List item three
|
|
16
|
+
|
|
17
|
+
## Code example
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npm run dev
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Callouts
|
|
24
|
+
|
|
25
|
+
{% callout type="note" title="Note" %}
|
|
26
|
+
Use this for helpful context or extra information.
|
|
27
|
+
{% /callout %}
|
|
28
|
+
|
|
29
|
+
{% callout type="tip" title="Pro tip" %}
|
|
30
|
+
Use this for shortcuts, best practices, or recommendations.
|
|
31
|
+
{% /callout %}
|
|
32
|
+
|
|
33
|
+
{% callout type="warning" title="Warning" %}
|
|
34
|
+
Use this to flag something the reader should be careful about.
|
|
35
|
+
{% /callout %}
|
|
36
|
+
|
|
37
|
+
{% callout type="danger" title="Danger" %}
|
|
38
|
+
Use this for critical warnings where ignoring the advice could cause serious problems.
|
|
39
|
+
{% /callout %}
|
|
40
|
+
|
|
41
|
+
## Images
|
|
42
|
+
|
|
43
|
+
You can also insert images into the content.
|
|
44
|
+
|
|
45
|
+

|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Home
|
|
3
|
+
layout: landing
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
{% hero
|
|
7
|
+
title="Your product name"
|
|
8
|
+
titleAccent="tagline here."
|
|
9
|
+
description="A short description of what your docs cover and who they're for."
|
|
10
|
+
%}
|
|
11
|
+
{% button path="/getting-started" %}Get started{% /button %}
|
|
12
|
+
{% /hero %}
|
|
13
|
+
|
|
14
|
+
{% section title="Everything you need" %}
|
|
15
|
+
{% cardGrid cols="3" %}
|
|
16
|
+
{% card title="Getting Started" path="/getting-started" %}
|
|
17
|
+
A short description of this section.
|
|
18
|
+
{% /card %}
|
|
19
|
+
{% card title="Core Concepts" path="/getting-started" %}
|
|
20
|
+
A short description of this section.
|
|
21
|
+
{% /card %}
|
|
22
|
+
{% card title="Reference" path="/getting-started" %}
|
|
23
|
+
A short description of this section.
|
|
24
|
+
{% /card %}
|
|
25
|
+
{% /cardGrid %}
|
|
26
|
+
{% /section %}
|
|
Binary file
|
package/index.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// Import the createApp function from mordoc
|
|
4
|
-
const { createApp } = require('mordoc/dist/cli/create-app');
|
|
5
|
-
|
|
6
|
-
// Parse command line arguments
|
|
7
|
-
const args = process.argv.slice(2);
|
|
8
|
-
const projectName = args[0];
|
|
9
|
-
|
|
10
|
-
// Parse options
|
|
11
|
-
const options = {};
|
|
12
|
-
for (let i = 1; i < args.length; i++) {
|
|
13
|
-
const arg = args[i];
|
|
14
|
-
if (arg === '--template' && args[i + 1]) {
|
|
15
|
-
options.template = args[++i];
|
|
16
|
-
} else if (arg === '--skip-install') {
|
|
17
|
-
options.skipInstall = true;
|
|
18
|
-
} else if (arg === '--git') {
|
|
19
|
-
options.skipGit = false;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// Check for required project name
|
|
24
|
-
if (!projectName) {
|
|
25
|
-
console.error('Please specify a project name:');
|
|
26
|
-
console.error(' npx create-mordoc-app my-docs');
|
|
27
|
-
process.exit(1);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// Call the createApp function
|
|
31
|
-
createApp(projectName, options).catch(err => {
|
|
32
|
-
console.error('Error creating project:', err);
|
|
33
|
-
process.exit(1);
|
|
34
|
-
});
|