repository/
├── README.md # Tutorial information
├── chapter-1/ # Chapter directory
│ ├── README.md # Chapter information
│ ├── section-1.md # Section content
│ └── section-2.md
└── chapter-2/
├── README.md
└── section-1.md
---
title: "Tutorial Title"
slug: "tutorial-slug"
description: "Tutorial description"
author: "Author Name"
status: "published" # or "draft"
created_at: "2024-01-01"
updated_at: "2024-01-01"
---
# Tutorial Title
Tutorial content...
---
title: "Chapter Title"
slug: "chapter-slug"
sequence: 1
description: "Chapter description"
status: "published" # or "draft"
---
# Chapter Title
Chapter content...
---
title: "Section Title"
slug: "section-slug"
sequence: 1
description: "Section description"
is_published: true # or false
estimated_minutes: 10
---
# Section Title
Section content...
-
File Naming
- Use lowercase letters
- Use hyphens for spaces
- Keep names short and descriptive
- Example:
git-basics.md
,advanced-features.md
-
Content Organization
- Each chapter must have its own directory
- Each directory must have a README.md
- Sections must be .md files
- Follow the sequence numbers for ordering
-
Metadata Fields
title
: Display nameslug
: URL-friendly identifiersequence
: Order numberdescription
: Brief summarystatus/is_published
: Content visibilityestimated_minutes
: Estimated reading time (sections only)
-
Content Writing
- Use clear and concise language
- Include code examples where relevant
- Add images in the same directory
- Reference images using relative paths
- Keep content focused and well-structured
-
Before Making Changes
# Pull latest changes git pull origin main # Create new branch git checkout -b feature/update-content
-
Making Changes
- Update content following the format guidelines
- Test content rendering locally
- Verify all links and references
-
Testing Changes
# Run sync command php artisan tutorial:sync-repository /path/to/repository # Check sync report cat storage/logs/tutorial-sync-*.log | tail -n 1
-
Committing Changes
# Stage changes git add . # Commit with descriptive message git commit -m "update: [Chapter/Section] - Brief description" # Push changes git push origin feature/update-content
-
Creating Pull Request
- Create PR on GitHub
- Add description of changes
- Request review if needed
- Wait for approval
-
Content Quality
- Maintain consistent formatting
- Check spelling and grammar
- Ensure technical accuracy
- Keep content up-to-date
-
Collaboration
- Communicate changes with team
- Review others' contributions
- Provide constructive feedback
- Follow project guidelines
-
Version Control
- Make atomic commits
- Write clear commit messages
- Keep branches up to date
- Resolve conflicts promptly
-
Documentation
- Update related documentation
- Add comments where needed
- Document complex procedures
- Keep README files current
If you have questions or need assistance:
- Check existing documentation
- Review past commits and PRs
- Contact project maintainers
- Open an issue for discussion
Remember: Quality content helps everyone learn better!