Skip to content

Commit 9089491

Browse files
roderiksaeeddawod
andauthored
feat: new docs framework (#154)
How to migrate: - set up the folder structure - remove any numbers from the file names make then similar (kebab-case) - fix the frontmatter (see https://fumadocs.vercel.app/docs/ui/markdown#frontmatter) - put the images used in the folder itself in an assets folder, then fix the urls - replace all custom components with native components - https://fumadocs.vercel.app/docs/ui/markdown#mdx - https://fumadocs.vercel.app/docs/ui/components/accordion etc - https://fumadocs.vercel.app/docs/ui/mdx - https://fumadocs.vercel.app/docs/headless/mdx/install - schematics via https://fumadocs.vercel.app/docs/ui/mermaid - ordering etc via https://fumadocs.vercel.app/docs/ui/page-conventions#meta While migrating, take note of the wordings: - All out things together are "SettleMint" - The platform is called SettleMint Platform - SettleMint SDK and SettleMint CLI - Asset Tokenization Kit To run: - clone - bun i - bun dev - http://localhost:3000/documentation --------- Co-authored-by: saeeddawod <saeed.dawod@gmail.com>
1 parent 79d97f8 commit 9089491

File tree

576 files changed

+11094
-10821
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

576 files changed

+11094
-10821
lines changed

.bun-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.2.2

.dockerignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
node_modules
2-
coverage
3-
test
2+
.git
3+
.gitignore
4+
.next
5+
out
6+
bun.l*

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["next/core-web-vitals", "next/typescript"]
3+
}

.github/workflows/branch.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ jobs:
4343
with:
4444
fetch-depth: 2
4545

46-
- name: Install Cosign
47-
uses: sigstore/cosign-installer@v3
48-
4946
- name: Install Node.js
5047
uses: actions/setup-node@v4
5148
with:
@@ -55,19 +52,18 @@ jobs:
5552
- name: Install Node.js
5653
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
5754
with:
58-
node-version-file: package.json
55+
node-version-file: .nvmrc
5956
token: ${{ secrets.GITHUB_TOKEN }}
6057

6158
- name: Setup caches
6259
uses: namespacelabs/nscloud-cache-action@1d016dd6d40428050a16a6271307888386cc0bec # v1
6360
with:
6461
path: |
65-
.turbo
6662
~/.bun/install/cache
6763
6864
- uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2
6965
with:
70-
bun-version-file: package.json
66+
bun-version-file: .bun-version
7167

7268
- name: Login to GitHub Container Registry
7369
uses: docker/login-action@v3
@@ -106,8 +102,4 @@ jobs:
106102
107103
- name: Build Docker container
108104
run: |
109-
bun run docker
110-
111-
- name: Cosign Docker container
112-
run: |
113-
bun run cosign
105+
bun run docker

.gitignore

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
1-
# Dependencies
1+
# deps
22
/node_modules
33

4-
# Production
5-
/build
4+
# generated content
5+
.contentlayer
6+
.content-collections
7+
.source
68

7-
# Generated files
8-
.docusaurus
9-
.cache-loader
9+
# test & build
10+
/coverage
11+
/.next/
12+
/out/
13+
/build
14+
*.tsbuildinfo
1015

11-
# Misc
16+
# misc
1217
.DS_Store
13-
.env.local
14-
.env.development.local
15-
.env.test.local
16-
.env.production.local
17-
18+
*.pem
19+
/.pnp
20+
.pnp.js
1821
npm-debug.log*
1922
yarn-debug.log*
2023
yarn-error.log*
24+
25+
# others
26+
.env*.local
27+
.vercel
28+
next-env.d.ts

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22.14.0

.prettierrc

Lines changed: 0 additions & 11 deletions
This file was deleted.

.vscode/extensions.json

Lines changed: 0 additions & 39 deletions
This file was deleted.

.vscode/launch.json

Lines changed: 0 additions & 43 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 65 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,85 @@
11
{
2-
"editor.inlineSuggest.enabled": true,
3-
"workbench.productIconTheme": "fluent-icons",
4-
"workbench.iconTheme": "vscode-icons",
5-
"diffEditor.ignoreTrimWhitespace": false,
6-
"editor.tabSize": 2,
7-
"git.enableSmartCommit": true,
8-
"editor.defaultFormatter": "esbenp.prettier-vscode",
2+
"typescript.tsdk": "node_modules/typescript/lib",
3+
"editor.defaultFormatter": "biomejs.biome",
4+
"editor.formatOnSave": true,
5+
"editor.formatOnPaste": true,
6+
"emmet.showExpandedAbbreviation": "never",
97
"editor.codeActionsOnSave": {
10-
"source.addMissingImports": "explicit",
11-
"source.organizeImports": "explicit",
12-
"source.fixAll.eslint": "explicit"
8+
"quickfix.biome": "explicit",
9+
"source.organizeImports.biome": "explicit"
1310
},
14-
"eslint.execArgv": [
15-
"--max-old-space-size=8192",
16-
"--max-semi-space-size=8192"
17-
],
18-
"git.confirmSync": false,
19-
"git.autofetch": true,
20-
"explorer.confirmDelete": false,
21-
"explorer.confirmDragAndDrop": false,
22-
"javascript.updateImportsOnFileMove.enabled": "never",
23-
"workbench.tree.renderIndentGuides": "always",
24-
"workbench.colorCustomizations": {
25-
"tree.indentGuidesStroke": "#05ef3c9c"
11+
"[typescript]": {
12+
"editor.defaultFormatter": "biomejs.biome"
13+
},
14+
"[json]": {
15+
"editor.defaultFormatter": "biomejs.biome"
16+
},
17+
"[javascript]": {
18+
"editor.defaultFormatter": "biomejs.biome"
19+
},
20+
"[jsonc]": {
21+
"editor.defaultFormatter": "biomejs.biome"
22+
},
23+
"[typescriptreact]": {
24+
"editor.defaultFormatter": "biomejs.biome"
2625
},
27-
"solidity.compilerOptimization": 2000,
28-
"solidity.compileUsingRemoteVersion": "v0.8.20+commit.a1b79de6",
26+
"[solidity]": {
27+
"editor.defaultFormatter": "NomicFoundation.hardhat-solidity"
28+
},
29+
"solidity.formatter": "forge",
30+
"solidity.telemetry": false,
31+
"editor.stickyScroll.enabled": true,
32+
"editor.tabSize": 2,
2933
"errorLens.fontStyleItalic": true,
30-
"editor.fontWeight": "normal",
31-
"editor.minimap.enabled": false,
32-
"redhat.telemetry.enabled": false,
33-
"security.promptForLocalFileProtocolHandling": false,
34-
"workbench.editor.enablePreview": false,
3534
"explorer.fileNesting.enabled": true,
3635
"explorer.fileNesting.patterns": {
37-
"*.ts": "${capture}.js, ${capture}.typegen.ts, ${capture}.spec.ts",
36+
"*.cts": "${capture}.typegen.ts",
3837
"*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts",
3938
"*.jsx": "${capture}.js",
39+
"*.mts": "${capture}.typegen.ts",
40+
"*.ts": "${capture}.js, ${capture}.typegen.ts, ${capture}.spec.ts, ${capture}.test.ts",
4041
"*.tsx": "${capture}.ts, ${capture}.typegen.ts",
41-
"tsconfig.json": "tsconfig.*.json",
4242
"package.json": "package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb, bun.lock",
43-
"*.mts": "${capture}.typegen.ts",
44-
"*.cts": "${capture}.typegen.ts"
45-
},
46-
"typescript.tsserver.maxTsServerMemory": 16384,
47-
"workbench.activityBar.orientation": "vertical",
48-
"typescript.disableAutomaticTypeAcquisition": true,
49-
"editor.formatOnSave": true,
50-
"editor.cursorBlinking": "smooth",
51-
"editor.cursorSmoothCaretAnimation": "on",
52-
"editor.stickyScroll.enabled": true,
53-
"githubPullRequests.pullBranch": "never",
54-
"autoBarrel.ignoreFilePathContainingAnyOf": ".spec,.test,pulumi-templates/route,pulumi-templates/scc,.d.ts,module-definition,pulumi-resources/route,pulumi-resources/scc,pulumi-resources/velero",
55-
"eslint.codeActionsOnSave.rules": null,
56-
"[typescript]": {
57-
"editor.defaultFormatter": "esbenp.prettier-vscode"
43+
"tsconfig.json": "tsconfig.*.json"
5844
},
59-
"[json]": {
60-
"editor.defaultFormatter": "esbenp.prettier-vscode"
61-
},
62-
"[jsonc]": {
63-
"editor.defaultFormatter": "esbenp.prettier-vscode"
45+
"files.associations": {
46+
"*.css": "tailwindcss"
6447
},
65-
"javascript.preferences.importModuleSpecifier": "project-relative",
66-
"nxConsole.showNodeVersionOnStartup": false,
67-
"typescript.tsdk": "node_modules/typescript/lib",
68-
"typescript.enablePromptUseWorkspaceTsdk": true,
69-
"typescript.inlayHints.variableTypes.enabled": true,
70-
"typescript.preferences.preferTypeOnlyAutoImports": true,
71-
"typescript.updateImportsOnFileMove.enabled": "never",
72-
"typescript.inlayHints.enumMemberValues.enabled": true,
48+
"git.autofetch": true,
49+
"git.autoStash": true,
50+
"git.enableCommitSigning": true,
51+
"git.enableSmartCommit": true,
52+
"githubPullRequests.commentExpandState": "collapseAll",
53+
"githubPullRequests.defaultMergeMethod": "squash",
54+
"githubPullRequests.notifications": "pullRequests",
55+
"githubPullRequests.quickDiff": true,
56+
"sherlock.userId": "2e2829ed-26e5-4fb5-87e9-3d921da61e9f",
57+
"trailing-spaces.trimOnSave": true,
7358
"typescript.inlayHints.functionLikeReturnTypes.enabled": true,
74-
"typescript.inlayHints.parameterNames.enabled": "all",
7559
"typescript.inlayHints.parameterTypes.enabled": true,
7660
"typescript.inlayHints.propertyDeclarationTypes.enabled": true,
77-
"editor.codeLens": true,
61+
"typescript.inlayHints.variableTypes.enabled": true,
62+
"typescript.suggest.completeFunctionCalls": true,
7863
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
79-
"trailing-spaces.trimOnSave": true,
80-
"yaml.schemas": {},
81-
"workbench.tree.enableStickyScroll": true,
82-
"git.openRepositoryInParentFolders": "never",
83-
"codesnap.realLineNumbers": true,
84-
"codesnap.showWindowTitle": true,
85-
"codesnap.shutterAction": "copy",
86-
"codesnap.transparentBackground": true,
87-
"codesnap.backgroundColor": "#282828",
88-
"editor.wordWrap": "on",
89-
"files.associations": {
90-
"*.css": "tailwindcss"
64+
"typescript.tsserver.maxTsServerMemory": 16384,
65+
"typescript.tsserver.watchOptions": {
66+
"fallbackPolling": "dynamicPriorityPolling",
67+
"synchronousWatchDirectory": true,
68+
"watchDirectory": "useFsEvents",
69+
"watchFile": "useFsEventsOnParentDirectory"
9170
},
92-
"editor.quickSuggestions": {
93-
"strings": "on"
71+
"workbench.editor.customLabels.patterns": {
72+
"**/app/**/layout.tsx": "${dirname(1)}/${dirname} <layout>",
73+
"**/app/**/page.tsx": "${dirname(1)}/${dirname} <page>",
74+
"**/app/**/route.ts": "${dirname(1)}/${dirname} <route>",
75+
"**/components/**/index.tsx": "${dirname(1)}/${dirname} <component>"
9476
},
95-
"eslint.workingDirectories": [
96-
{
97-
"mode": "auto"
98-
}
99-
]
77+
"workbench.tree.enableStickyScroll": true,
78+
"typescript.enablePromptUseWorkspaceTsdk": true,
79+
"[dockerfile]": {
80+
"editor.defaultFormatter": "ms-azuretools.vscode-docker"
81+
},
82+
"[mdx]": {
83+
"editor.defaultFormatter": "esbenp.prettier-vscode"
84+
}
10085
}

0 commit comments

Comments
 (0)