-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Docs | ||
|
||
These are the docs. | ||
|
||
It uses Vitepress. | ||
|
||
The deployed docs are avaialbe under | ||
[www.key3d.surge.sh](https://key3d.surge.sh) . | ||
|
||
There are 4 folders | ||
|
||
- `./Intro` - contains Intro Section | ||
- `./Journey` - contains Journey of Development | ||
- `./Outro` - contains Outro Section | ||
- `./Notes` - contains diverse | ||
|
||
### Quickstart | ||
|
||
- `npm install` | ||
- `npx vitepress` | ||
- Go to http://localhost:5173 | ||
|
||
### Contribute | ||
|
||
- `gh repo clone FrankBevr/key3d` | ||
- `cd key3d/docs` | ||
- `touch ./Notes/MyContribution.md` | ||
- `echo "This is my Contribution" >> ./Notes/MyContribution.md` | ||
- `./contribute.sh` | ||
|
||
- `git status` | ||
- `git add ./Notes/MyContribution.md` | ||
- `git add ./.vitepress/config.ts` | ||
- `git status` | ||
- `git commit -m ":abc: (./docs) add MyContribution.md` | ||
- `git status` | ||
- `gh pr create --title "My Contribution" --body "This is a Pull Request, merge it please"` | ||
- Go to https://github.com/FrankBevr/key3D/pulls to see your Contribution | ||
pending. | ||
- After merge you see your Contribution under | ||
`https://key3d.surge.sh/Notes/MyContribution.html` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
file_path="./.vitepress/config.ts" | ||
|
||
# Check if the file exists | ||
if [ -f "$file_path" ]; then | ||
# Add the new line above /*<CONTRIUBTION>*/ using sed | ||
sed -i '/\/\*<CONTRIUBTION>\*\//i\{ text: "MyContribution", link: "Notes\/MyContribution" },' "$file_path" | ||
echo "Line added successfully!" | ||
else | ||
echo "File not found." | ||
fi |