Skip to content

aoneahsan/native-update-docs

Repository files navigation

native-update-docs

Public documentation site for the native-update Capacitor plugin.

Built with Docusaurus 3. Every push to main deploys automatically to GitHub Pages via .github/workflows/deploy-docs.yml (see DEPLOY.md).


Local development

yarn install
yarn start          # dev server at http://localhost:5960
yarn build          # production build into ./build
yarn serve          # preview the production build at http://localhost:5961
yarn typecheck      # TypeScript-only check, no emit

The dev server is configured to bind on port 5960 (registered in ~/.dev-ports.json).

Project structure

native-update-docs/
├── docs/                    # Markdown content (the actual docs)
│   ├── intro.md
│   ├── getting-started/
│   ├── reference/           # SDK, CLI, backend API (populated in Batches 2–6)
│   ├── platforms/           # Android, iOS, Web (Batch 7)
│   ├── tutorials/           # End-to-end walkthroughs (Batch 8)
│   ├── how-to/              # Problem-oriented guides (Batch 8)
│   ├── concepts/            # Explanations (Batch 9)
│   └── about-the-author.md
├── src/
│   ├── css/custom.css       # Brand palette + dark mode tuning
│   └── pages/index.tsx      # Homepage
├── static/
│   ├── img/                 # Logo, favicon, social-card SVGs
│   └── robots.txt           # Skeleton — full AI-bot allow list in Batch 10
├── docusaurus.config.ts
├── sidebars.ts
└── package.json

Authoring conventions

  • One H1 per page — Docusaurus uses it for the page title and breadcrumbs.
  • Frontmatter required on every doc:
    • title, description (40–160 chars, AI-extractable), keywords, last_update.date, last_update.author.
    • Optional: sidebar_position for ordering.
  • Author credit at the bottom of every long page via the .nu-author-card div.
  • Honesty over marketing — say what the plugin does NOT do as clearly as what it does.
  • No fabricated stats — cite sources by name (Capacitor, Apple guidelines, etc.).
  • Code blocks must compile / run as written. Use TypeScript over JavaScript.

Contribution & status

All planned content batches are complete; the site is the canonical documentation for the plugin. plugin-version.json, docs/ai-integration.md, and docs/changelog.md are generated by yarn sync:from-plugin (maintainer-only; reads the private plugin repo) — don't edit them by hand.

main is protected: contributions go through fork + pull request with one approving review and a green build check — see CONTRIBUTING.md. If you spot an error or want to suggest a topic, open an issue.

License

MIT — same as the plugin. Built by Ahsan Mahmood (aoneahsan@gmail.com, LinkedIn).

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors