Skip to content

datba1/aka-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Akabot Documentation

This repository holds the markdown content for the Akabot documentation site.

How to contribute

  1. Fork or clone this repo and create a branch.
  2. Edit or add markdown files (see Folder layout).
  3. Open a pull request to main.
  4. Once a maintainer reviews and merges, the site rebuilds automatically. Your changes are typically live within ~5 minutes.

Folder layout

docs/
  <module>/
    latest/              ← unreleased / next version
      overview.md
      ...
    <version>/           ← released snapshot, e.g. 2.0
      overview.md
      ...
  activities/
    <package>/           ← e.g. core, common, window
      latest/
        introduction.md
        ...
      <version>/
        introduction.md
        ...

i18n/vi/                 ← Vietnamese mirror of docs/
  <module>/
    latest/
    <version>/
  activities/
    <package>/
      latest/
      <version>/

static/                  ← shared media (see "Media files" below)
  img/
  pdf/
  video/

scripts/                 ← maintainer tools (validate / clean media)

Modules

Folder Product
docs/center/ Akabot Center
docs/studio/ Akabot Studio
docs/agent/ Akabot Agent
docs/data-service/ Data Service
docs/vision/ Akabot Vision
docs/insight/ Akabot Insight
docs/hub/ Akabot Hub
docs/integration-service/ Integration Service
docs/activities/<package>/ An activity package (Core, Window, Excel, …)

New activity packages and new versions can be added in this repo without any maintainer action. New top-level modules require a config change in the build repo — ask a maintainer.

Tasks

Add or update a doc page

  1. Add or edit the file under docs/<module>/latest/<file>.md.
  2. Mirror the change in i18n/vi/<module>/latest/<file>.md for Vietnamese.
  3. Commit, push, open a PR.

If you don't know Vietnamese, leave the VI file out — readers on the VI site fall back to the English version. A translator can add the VI page later.

Add a new version snapshot

When a release is ready to be frozen as version 2.0 (for example):

  1. Copy the entire docs/<module>/latest/ folder to docs/<module>/2.0/.
  2. Copy i18n/vi/<module>/latest/ to i18n/vi/<module>/2.0/ (if VI exists).
  3. Continue evolving latest/ — it represents the next release.
  4. Commit, PR, merge.

The site's version selector picks up 2.0 automatically.

Add a new activity package

  1. Create docs/activities/<new-package>/latest/ and add at least one MD file (typically introduction.md and release-notes.md).
  2. Mirror in i18n/vi/activities/<new-package>/latest/ for VI.
  3. Commit, PR, merge.

The site's package list and search index pick it up automatically.

Editing a frozen version

Frozen versions (2.0/, 1.5/, etc.) should only receive typo fixes and factual corrections. Structural changes, new pages, and reorganisations go in latest/ and become part of the next snapshot.

Media files (images, PDFs, videos)

All shared media lives under static/ at the repo root, organized by type:

static/
  img/        screenshots, diagrams, illustrations
  pdf/        downloadable documents
  video/      short clips (mp4 / webm preferred over GIF)

Markdown references media with an absolute path rooted at static/:

![Setup screenshot](/img/setup-windows.png)
[API reference (PDF)](/pdf/api-reference.pdf)
<video controls src="/video/walkthrough.mp4"></video>

The leading / is required. The site serves everything under static/ at the URL root, so static/img/foo.png becomes /img/foo.png in markdown. Don't use relative paths like ./foo.png — the validator will reject them.

Filename and size rules

  • Lowercase, hyphenated, no spaces or underscores: dashboard-overview.png, not Dashboard Overview.png
  • Descriptive names — agent-install-step3.png beats screenshot1.png
  • Maximum size: 5 MB per file
  • Optimize before commit:
    • Screenshots → PNG (use TinyPNG or pngquant)
    • Photos → JPG (quality 80–85)
    • Diagrams → SVG (small file, crisp at any zoom)
    • Animations → MP4/WebM (much smaller than GIF)
  • Don't commit raw editing files (.psd, .fig, .xd, .ai)
  • Files > 5 MB → host externally and link out

Reusing media

A single file in static/ can be referenced by any number of markdown pages across modules, versions, and locales. Don't duplicate the same image into multiple folders — reference the one canonical copy.

Vietnamese translations

If a screenshot must show Vietnamese UI specifically, name it accordingly and reference it from the Vietnamese page only:

static/img/dashboard-en.png    ← used by docs/center/latest/...
static/img/dashboard-vi.png    ← used by i18n/vi/center/latest/...

Most media (diagrams, language-neutral screenshots) can be shared between locales.

Maintainer tools (scripts/)

Three helpers live in scripts/. All require Node 20+.

MDX compilation check (validate-mdx.mjs)

Compiles every .md / .mdx file with the same MDX parser Docusaurus uses. Catches JSX syntax errors (unclosed tags, illegal characters in tag names, etc.) before they reach the build repo.

# one-time setup
cd scripts && npm install && cd ..

# run the check (from repo root)
node scripts/validate-mdx.mjs

Also runs automatically on every PR and push to main via CI.

Media validation (validate-media.mjs)

Checks filenames, sizes, and broken image/file references. No install needed.

node scripts/validate-media.mjs

Run on any PR that adds, renames, or removes files under static/.

Unused media cleanup (clean-media.mjs)

Finds files in static/ that no markdown page references.

node scripts/clean-media.mjs              # interactive
node scripts/clean-media.mjs --dry-run    # report only, no deletions

Markdown frontmatter

Every page should start with frontmatter. Common keys:

---
title: Page Title
sidebar_label: Short Label In Sidebar
sidebar_position: 2
displayed_sidebar: centerSidebar   # only if you need a non-default sidebar
---

The displayed_sidebar value matches the module folder (e.g. centerSidebar, studioSidebar, activitiesSidebar for activity packages). See existing files in any module for examples.

Translation rules

  • latest/ is the source of truth for the next release. English is canonical; Vietnamese should track it.
  • Frozen folders are immutable except for typo fixes.
  • Missing Vietnamese files fall back to English on the VI site — preferable to shipping bad machine-translated text.

Local preview

Building the site requires the internal build repository. Most contributors rely on the deployed site after merge. If you need a local preview, ask a maintainer.

Process diagram

  PR opened          merged to main
       |                    |
       v                    v
   review by  ───────►  GitHub Action in this repo fires
   maintainer            (notify build repo)
                                |
                                v
                          build repo
                                |
                                v
                          docs.akabot.com updated (~5 min)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors