|
1 | | -# Astro Starter Kit: Minimal |
| 1 | +q# Basic Memory Documentation |
2 | 2 |
|
3 | | -```sh |
4 | | -npm create astro@latest -- --template minimal |
| 3 | +Official documentation site for [Basic Memory](https://basicmemory.com) - a local-first knowledge management system built on the Model Context Protocol (MCP). |
| 4 | + |
| 5 | +🌐 **Live Site:** [docs.basicmemory.com](https://docs.basicmemory.com) |
| 6 | + |
| 7 | +## About |
| 8 | + |
| 9 | +This repository contains the complete documentation for Basic Memory, including: |
| 10 | + |
| 11 | +- Getting Started guides |
| 12 | +- User Guide and AI Assistant Guide |
| 13 | +- MCP Tools Reference |
| 14 | +- Integration guides (Claude Desktop, ChatGPT, VS Code, Cursor, Obsidian) |
| 15 | +- Cloud features documentation |
| 16 | +- CLI Reference |
| 17 | +- Release notes and What's New |
| 18 | + |
| 19 | +## Tech Stack |
| 20 | + |
| 21 | +- **Framework:** [Astro](https://astro.build) with React components |
| 22 | +- **Styling:** Tailwind CSS |
| 23 | +- **Components:** Custom documentation components (Note, Warning, Info, etc.) |
| 24 | +- **Content:** MDX (Markdown + JSX) |
| 25 | + |
| 26 | +## Development |
| 27 | + |
| 28 | +### Prerequisites |
| 29 | + |
| 30 | +- Node.js 18+ |
| 31 | +- npm or pnpm |
| 32 | + |
| 33 | +### Setup |
| 34 | + |
| 35 | +```bash |
| 36 | +# Install dependencies |
| 37 | +npm install |
| 38 | + |
| 39 | +# Start dev server |
| 40 | +npm run dev |
5 | 41 | ``` |
6 | 42 |
|
7 | | -[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/minimal) |
8 | | -[](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/minimal) |
9 | | -[](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/minimal/devcontainer.json) |
| 43 | +The site will be available at `http://localhost:4321` |
10 | 44 |
|
11 | | -> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun! |
| 45 | +### Commands |
12 | 46 |
|
13 | | -## 🚀 Project Structure |
| 47 | +| Command | Action | |
| 48 | +|---------|--------| |
| 49 | +| `npm install` | Install dependencies | |
| 50 | +| `npm run dev` | Start dev server at `localhost:4321` | |
| 51 | +| `npm run build` | Build production site to `./dist/` | |
| 52 | +| `npm run preview` | Preview production build locally | |
14 | 53 |
|
15 | | -Inside of your Astro project, you'll see the following folders and files: |
| 54 | +## Project Structure |
16 | 55 |
|
17 | | -```text |
18 | | -/ |
19 | | -├── public/ |
| 56 | +``` |
| 57 | +docs.basicmemory.com/ |
| 58 | +├── public/ # Static assets |
20 | 59 | ├── src/ |
21 | | -│ └── pages/ |
22 | | -│ └── index.astro |
23 | | -└── package.json |
| 60 | +│ ├── components/ # React components (Note, Warning, etc.) |
| 61 | +│ ├── config/ # Site configuration (navigation, etc.) |
| 62 | +│ ├── layouts/ # Page layouts |
| 63 | +│ ├── pages/ # Documentation pages (MDX) |
| 64 | +│ │ ├── guides/ # User and developer guides |
| 65 | +│ │ ├── integrations/ # Integration-specific docs |
| 66 | +│ │ ├── how-to/ # Use case examples |
| 67 | +│ │ └── technical/ # Technical deep dives |
| 68 | +│ └── styles/ # Global styles |
| 69 | +└── .claude/ |
| 70 | + └── agents/ # Claude Code agent definitions |
24 | 71 | ``` |
25 | 72 |
|
26 | | -Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name. |
| 73 | +## Contributing Documentation |
| 74 | + |
| 75 | +### Writing Style |
| 76 | + |
| 77 | +- **Factual and clear** - No embellishment or marketing language |
| 78 | +- **Present tense** - Describe what features do, not what they will do |
| 79 | +- **Practical examples** - Include working code examples from actual usage |
| 80 | +- **Consistent terminology** - Use terms as defined in the codebase |
| 81 | + |
| 82 | +### Adding New Pages |
| 83 | + |
| 84 | +1. Create `.mdx` file in appropriate directory under `src/pages/` |
| 85 | +2. Add frontmatter with title, description, and optional icon |
| 86 | +3. Update navigation in `src/config/navigation.ts` |
| 87 | +4. Use standard components: `<Note>`, `<Warning>`, `<Info>`, `<Tip>` |
| 88 | + |
| 89 | +Example: |
| 90 | + |
| 91 | +```mdx |
| 92 | +--- |
| 93 | +layout: '@/layouts/DocsLayout.astro' |
| 94 | +title: 'Page Title' |
| 95 | +description: 'Brief description' |
| 96 | +--- |
| 97 | + |
| 98 | +import { Note, Warning, Info } from '@/components' |
| 99 | + |
| 100 | +<Note> |
| 101 | +Important information for readers |
| 102 | +</Note> |
| 103 | + |
| 104 | +## Section |
| 105 | + |
| 106 | +Content here... |
| 107 | +``` |
| 108 | + |
| 109 | +### Documentation Components |
| 110 | + |
| 111 | +- `<Note>` - General information |
| 112 | +- `<Warning>` - Important warnings |
| 113 | +- `<Info>` - Highlighted information |
| 114 | +- `<Tip>` - Helpful tips |
| 115 | +- `<Steps>` / `<Step>` - Step-by-step instructions |
| 116 | +- `<Accordion>` / `<AccordionItem>` - Collapsible sections |
| 117 | + |
| 118 | +### AI Agent for Documentation |
| 119 | + |
| 120 | +This repository includes a Claude Code agent for documentation writing: |
| 121 | + |
| 122 | +`.claude/agents/basic-memory-docs-writer.md` |
| 123 | + |
| 124 | +Use this agent for: |
| 125 | +- Creating new documentation pages |
| 126 | +- Updating existing documentation |
| 127 | +- Ensuring consistent style and tone |
| 128 | + |
| 129 | +## Deployment |
27 | 130 |
|
28 | | -There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components. |
| 131 | +Documentation is automatically deployed from the `main` branch. |
29 | 132 |
|
30 | | -Any static assets, like images, can be placed in the `public/` directory. |
| 133 | +## Related Repositories |
31 | 134 |
|
32 | | -## 🧞 Commands |
| 135 | +- [basic-memory](https://github.com/basicmachines-co/basic-memory) - Main Basic Memory repository |
| 136 | +- [basicmemory.com](https://github.com/basicmachines-co/basicmemory.com) - Product marketing site |
| 137 | +- [basicmachines.co](https://github.com/basicmachines-co/basicmachines.co) - Company website |
33 | 138 |
|
34 | | -All commands are run from the root of the project, from a terminal: |
| 139 | +## License |
35 | 140 |
|
36 | | -| Command | Action | |
37 | | -| :------------------------ | :----------------------------------------------- | |
38 | | -| `npm install` | Installs dependencies | |
39 | | -| `npm run dev` | Starts local dev server at `localhost:4321` | |
40 | | -| `npm run build` | Build your production site to `./dist/` | |
41 | | -| `npm run preview` | Preview your build locally, before deploying | |
42 | | -| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` | |
43 | | -| `npm run astro -- --help` | Get help using the Astro CLI | |
| 141 | +See the main [Basic Memory repository](https://github.com/basicmachines-co/basic-memory) for license information. |
44 | 142 |
|
45 | | -## 👀 Want to learn more? |
| 143 | +## Support |
46 | 144 |
|
47 | | -Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat). |
| 145 | +- [Discord](https://discord.gg/tyvKNccgqN) - Community support |
| 146 | +- [GitHub Issues](https://github.com/basicmachines-co/basic-memory/issues) - Bug reports and feature requests |
| 147 | +- [Reddit](https://www.reddit.com/r/basicmemory) - Community discussions |
0 commit comments