Skip to content

Latest commit

Β 

History

History
148 lines (102 loc) Β· 3.2 KB

File metadata and controls

148 lines (102 loc) Β· 3.2 KB

Contributing to OmniScript Website

Thank you for your interest in contributing to the OmniScript Format (OSF) Documentation Website! This site provides documentation, guides, and a playground for OSF.


πŸš€ Getting Started

1️⃣ Fork the repository

Click the Fork button at the top right of the omniscriptosf.github.io repository page.

2️⃣ Clone your fork locally

git clone https://github.com/your-username/omniscriptosf.github.io.git
cd omniscriptosf.github.io
git checkout -b my-feature-branch

3️⃣ Install dependencies

npm install

4️⃣ Run development server

npm run dev

Visit http://localhost:3000 to see your changes.

5️⃣ Make your changes

  • Edit pages in app/
  • Add components in components/
  • Update styles in Tailwind classes
  • Add new documentation pages

6️⃣ Build and test

# Build for production
npm run build

# Preview production build
npm run start

7️⃣ Commit and push

git add .
git commit -m "docs: describe your change concisely"
git push origin my-feature-branch

8️⃣ Open a Pull Request

Go to your fork on GitHub and click Compare & pull request.


πŸ’‘ Contribution Types

βœ… Improve documentation
βœ… Add guides and tutorials
βœ… Fix typos and errors
βœ… Improve UI/UX
βœ… Add examples to playground
βœ… Enhance accessibility


✨ Guidelines

Commit Message Convention

We follow Conventional Commits:

  • docs: - Documentation changes
  • feat: - New features
  • fix: - Bug fixes
  • style: - UI/styling changes
  • refactor: - Code refactoring

Examples:

docs: add guide for @table blocks
feat: add interactive playground
fix: broken links in navigation
style: improve mobile responsiveness

Documentation Style

  • Clear and concise: Use simple language
  • Code examples: Include working examples
  • Visual aids: Use diagrams and screenshots where helpful
  • Accessibility: Ensure WCAG AA compliance
  • Mobile-first: Test on mobile devices

File Structure

app/
β”œβ”€β”€ page.tsx              # Homepage
β”œβ”€β”€ docs/                 # Documentation pages
β”‚   β”œβ”€β”€ page.tsx         # Docs index
β”‚   β”œβ”€β”€ v1-2-features/   # Feature guides
β”‚   └── releases/        # Release notes
β”œβ”€β”€ playground/          # Interactive playground
└── api/                 # API routes

Pull Request Process

  1. Target the main branch
  2. Build succeeds (npm run build)
  3. Test on mobile and desktop
  4. Request review from maintainers
  5. Address any review feedback

All contributors must follow our Code of Conduct


🀝 Community

Join our discussions on GitHub Discussions.


πŸ“š Key Technologies

  • Framework: Next.js 15.3.3
  • Language: TypeScript
  • Styling: Tailwind CSS 3.4.17
  • Icons: Phosphor Icons
  • Deployment: GitHub Pages

πŸ“„ License

By contributing, you agree that your contributions will be licensed under the MIT License.