The documentation of Spatial Data Analysis with Kepler.gl AI Assistant
This documentation is built with VitePress, a modern static site generator powered by Vite and Vue.
- Node.js 18 or higher
Install: https://nodejs.org/en/download
npm installStart the development server with hot reload:
npm run docs:devThe site will be available at http://localhost:5173/
Build the documentation for production:
npm run docs:buildThe built files will be in docs/.vitepress/dist/
Preview the production build locally:
npm run docs:preview.
├── docs/
│ ├── .vitepress/
│ │ └── config.js # VitePress configuration
│ ├── public/
│ │ └── images/
│ │ └── sys-arch-openassistant.png
│ ├── index.md # Home page
│ ├── guide.md # Introduction
│ ├── 1-get-started.md
│ ├── 2-spatial-data-wrangling.md
│ ├── 3-spatial-data-2.md
│ ├── 4-basic-mapping.md
│ └── 5-map-rates.md
├── package.json
└── README.md
To add new documentation pages:
-
Create a new markdown file in the
docs/directory- Use descriptive filenames (e.g.,
6-advanced-analysis.md) - Follow the existing naming convention with numbers for ordering
- Use descriptive filenames (e.g.,
-
Update the VitePress sidebar configuration
- Edit
docs/.vitepress/config.js - Add your new page to the
sidebararray in the correct order:
sidebar: [ { text: 'Documentation', items: [ { text: 'Introduction', link: '/guide' }, { text: 'Get Started', link: '/1-get-started' }, // ... existing pages ... { text: 'Your New Page', link: '/6-your-new-page' }, ], }, ],
- Edit
-
Update this README
- Add the new file to the project structure tree above
- Update any relevant sections as needed
-
Best practices for new pages
- Start with a clear title using
# Page Title - Include a brief introduction explaining what the page covers
- Use consistent formatting and structure
- Add internal links to related pages when relevant
- Test locally with
npm run docs:devbefore committing
- Start with a clear title using
To add images to your markdown files:
-
Place images in the
docs/public/images/directory- Create subdirectories as needed for organization
- Supported formats:
.png,.jpg,.jpeg,.gif,.svg,.webp
-
Reference images in markdown using relative paths
 
-
Example usage

-
Best practices
- Use descriptive alt text for accessibility
- Optimize image sizes for web (compress large images)
- Use consistent naming conventions
- Consider using SVG for diagrams and icons
Contributions are welcome! Here's how to contribute to this documentation:
- Go to the GitHub Issues page
- Create a new issue describing what you want to add or fix
- This helps coordinate work and avoid duplicate efforts
- Option A: Use GitHub's interface
- On the issue page, look for the "Development" section in the right side panel
- Click "Create a branch" to automatically create a branch for this issue
- GitHub will suggest a branch name based on the issue number
- Option B: Create manually
- Create a new branch from
mainusing the issue number:git checkout -b issue-123-description
- Replace
123with your actual issue number and add a brief description
- Create a new branch from
- Use your preferred editor (e.g., VS Code) to add or modify documentation pages
- Follow the guidelines in the "Adding New Pages" and "Adding Images to Documentation" sections above
- Test your changes locally:
npm run docs:dev
- Ensure all links work and the documentation renders correctly
- Commit your changes with a descriptive message:
git add . git commit -m "Add new page: Advanced Analysis Techniques" git push origin issue-123-description
- Go to the Pull Requests page
- Click "New Pull Request"
- Link your PR to the original issue using
Closes #123in the description - Request review from maintainers
- Address any feedback from reviewers
- Once approved, your changes will be merged into the main branch
- The updated documentation will be automatically deployed
- Follow the existing documentation style and structure
- Use clear, concise language
- Include relevant examples and code snippets
- Test all links and images before submitting
- Keep commits focused and well-described
ISC