Skip to content

belyas/pubsub-mfe-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PubSub MFE Documentation

This is the documentation website for @belyas/pubsub-mfe, built with VitePress.

🚀 Quick Start

Install Dependencies

pnpm install

Development Server

pnpm dev

The site will be available at http://localhost:5173

Build

pnpm build

Output will be in .vitepress/dist

Preview Build

pnpm preview

🎨 Theme

This site uses VitePress's default theme with minimal customization for clean, professional documentation.

📝 Writing Documentation

Adding a New Page

  1. Create a Markdown file in the appropriate directory
  2. Add frontmatter if needed:
---
title: Page Title
description: Page description for SEO
---

# Page Title

Content here...
  1. Update .vitepress/config.ts sidebar configuration

Using Components

VitePress supports Vue components:

<script setup>
import CustomComponent from './components/CustomComponent.vue'
</script>

<CustomComponent />

Code Blocks

Use syntax highlighting:

```typescript
const bus = createPubSub({ app: 'my-app' });
```

Custom Containers

::: tip
This is a tip
:::

::: warning
This is a warning
:::

::: danger
This is a dangerous warning
:::

::: info
This is an info box
:::

🔍 Search

VitePress includes built-in local search. No configuration needed!

🌐 Base URL

The site is configured for GitHub Pages deployment at /. Update base in .vitepress/config.ts if deploying elsewhere:

export default defineConfig({
  base: '/your-repo-name/', // Change this
  // ...
})

📦 Dependencies

  • vitepress: ^1.5.0 - Static site generator
  • vue: ^3.5.13 - Required by VitePress
  • gh-pages: ^6.2.0 - GitHub Pages deployment utility

🤝 Contributing

To contribute to the documentation:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test locally with pnpm dev
  5. Submit a pull request

📄 License

Apache-2.0 License - See LICENSE file for details

About

Documentation site for @belyas/pubsub-mfe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published