-
Notifications
You must be signed in to change notification settings - Fork 1
Wiki Management
This guide explains how to modify, create, and upload wiki documentation for the OnTime Flutter project.
Our project wiki is integrated directly into the main repository using Git subtrees. This means:
- Wiki content is stored in the
docs/
folder - Changes are version-controlled with the main codebase
- Documentation stays in sync with code changes
- New developers can access docs offline
- Git configured with your GitHub account
- Access to the OnTime-front repository
- Basic knowledge of Markdown
docs/
├── Architecture.md # Project structure and architecture
├── Git.md # Git workflow and commit guidelines
├── Home.md # Wiki homepage
└── Wiki-Management.md # This guide
Navigate to the docs/
folder and edit any .md
file:
# Navigate to docs folder
cd docs/
# Edit existing files with your preferred editor
code Architecture.md
# or
vim Home.md
# or
nano Git.md
Use any Markdown preview tool or your IDE's built-in preview to review changes before committing.
# From project root
git add docs/
git commit -m "docs: update [filename] with [brief description]"
# From project root
touch docs/New-Page-Name.md
Use standard Markdown syntax. Here's a template:
# Page Title
Brief description of what this page covers.
## Section 1
Content here...
### Subsection
More detailed content...
## Code Examples
\```dart
// Flutter/Dart code examples
void main() {
print('Hello OnTime!');
}
\```
## Links and References
- [Internal Link](./Other-Page.md)
- [External Link](https://flutter.dev)
If creating a major new page, consider updating Home.md
to include a link to your new page.
Our project uses Git subtree to keep the main repository and GitHub wiki synchronized.
After committing your documentation changes to the main repository:
# Push documentation changes to GitHub wiki
git subtree push --prefix=docs wiki master
What this does:
- Takes all changes from the
docs/
folder - Pushes them to the GitHub wiki repository
- Updates the online wiki at
https://github.com/DevKor-github/OnTime-front/wiki
If someone edits the wiki directly on GitHub:
# Pull changes from GitHub wiki to local docs folder
git subtree pull --prefix=docs wiki master --squash
When to use this:
- Someone edited wiki pages directly on GitHub
- You want to sync external wiki changes to your local repository
- Before starting major documentation work (to avoid conflicts)
-
Create a documentation branch:
git checkout -b docs/feature-name
-
Make your documentation changes
-
Commit and push to main repository:
git add docs/ git commit -m "docs: add documentation for feature-name" git push origin docs/feature-name
-
Create PR for review
-
After PR merge, sync to wiki:
git checkout main git pull origin main git subtree push --prefix=docs wiki master
If you encounter conflicts when pulling from the wiki:
- Resolve conflicts in the docs/ folder
-
Commit the resolution:
git add docs/ git commit -m "docs: resolve wiki merge conflicts"
-
Push resolved changes:
git subtree push --prefix=docs wiki master
- Use kebab-case:
Getting-Started.md
,API-Guide.md
- Be descriptive but concise
- Avoid spaces and special characters
- Start with a clear title and overview
- Use consistent heading hierarchy (H1 → H2 → H3)
- Include code examples where relevant
- Add links to related documentation
- Keep content up-to-date with code changes
- Use
backticks
for inline code - Use triple backticks with language for code blocks
- Use
**bold**
for emphasis - Use
> blockquotes
for important notes - Create tables for structured data
Issue: fatal: working tree has modifications
# Solution: Commit or stash changes first
git add .
git commit -m "docs: work in progress"
# or
git stash
Issue: Wiki changes not appearing on GitHub
# Solution: Ensure you pushed to the wiki remote
git subtree push --prefix=docs wiki master
Issue: Local docs out of sync
# Solution: Pull latest changes from wiki
git subtree pull --prefix=docs wiki master --squash
- Check Git status:
git status
- View recent commits:
git log --oneline -10
- Check remotes:
git remote -v
- Ask team members or create an issue
For new developers, consider creating these essential pages:
- Getting-Started.md - Setup and installation guide
- Development-Guide.md - Development workflow and tools
- API-Documentation.md - Backend API reference
- Testing-Guide.md - How to run and write tests
- Deployment.md - Build and deployment procedures
- Contributing.md - Contribution guidelines
- Troubleshooting.md - Common issues and solutions