@docsector/docsector-reader 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) Rodrigo Vieira (rodrigo@slayer.tech)
3
+ Copyright (c) Rodrigo de Araujo Vieira
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
6
 
package/README.md CHANGED
@@ -1,31 +1,47 @@
1
- # Docsector Reader
2
-
3
- > A documentation rendering engine built with Vue 3, Quasar v2 and Vite.
1
+ <p align="center">
2
+ <img src="https://github.com/docsector.png" alt="docsector-logo" width="120px" height="120px"/>
3
+ </p>
4
+ <h1 align="center">Docsector Reader 📖</h1>
5
+ <p align="center">
6
+ <i>A documentation rendering engine built with Vue 3, Quasar v2 and Vite.</i>
7
+ </p>
8
+ <p align="center">
9
+ <a href="https://www.npmjs.com/package/@docsector/docsector-reader">
10
+ <img alt="npm version" src="https://img.shields.io/npm/v/@docsector/docsector-reader?color=blue&label=npm"/>
11
+ </a>
12
+ <a href="https://github.com/docsector/docsector-reader/blob/main/LICENSE.md">
13
+ <img alt="License" src="https://img.shields.io/github/license/docsector/docsector-reader"/>
14
+ </a>
15
+ </p>
4
16
 
5
17
  Transform Markdown content into beautiful, navigable documentation sites — with i18n, syntax highlighting, dark/light mode, and anchor navigation.
6
18
 
7
- ## Features
19
+ ---
20
+
21
+ ## ✨ Features
22
+
23
+ - 📝 **Markdown Rendering** — Write docs in Markdown, rendered with syntax highlighting (Prism.js)
24
+ - 🌍 **Internationalization (i18n)** — Multi-language support with HJSON locale files and per-page translations
25
+ - 🌗 **Dark/Light Mode** — Automatic theme switching with Quasar Dark Plugin
26
+ - 🔗 **Anchor Navigation** — Right-side Table of Contents tree with scroll tracking
27
+ - 🔎 **Search** — Menu search across all documentation content and tags
28
+ - 📱 **Responsive** — Mobile-friendly with collapsible sidebar and drawers
29
+ - 🏷️ **Status Badges** — Mark pages as `done`, `draft`, or `empty` with visual indicators
30
+ - ✏️ **Edit on GitHub** — Direct links to edit pages on your repository
31
+ - 📊 **Translation Progress** — Automatic translation percentage based on header coverage
32
+ - ⚙️ **Single Config File** — Customize branding, links, and languages via `docsector.config.js`
8
33
 
9
- - **Markdown Rendering** — Write docs in Markdown, rendered with syntax highlighting (Prism.js)
10
- - **Internationalization (i18n)** — Multi-language support with HJSON locale files and per-page translations
11
- - **Dark/Light Mode** — Automatic theme switching with Quasar Dark Plugin
12
- - **Anchor Navigation** — Right-side Table of Contents tree with scroll tracking
13
- - **Search** — Menu search across all documentation content and tags
14
- - **Responsive** — Mobile-friendly with collapsible sidebar and drawers
15
- - **Status Badges** — Mark pages as `done`, `draft`, or `empty` with visual indicators
16
- - **Edit on GitHub** — Direct links to edit pages on your repository
17
- - **Translation Progress** — Automatic translation percentage based on header coverage
18
- - **Single Config File** — Customize branding, links, and languages via `docsector.config.js`
34
+ ---
19
35
 
20
- ## Quick Start
36
+ ## 🚀 Quick Start
21
37
 
22
- ### Install from NPM
38
+ ### 📦 Install from NPM
23
39
 
24
40
  ```bash
25
41
  npm install @docsector/docsector-reader
26
42
  ```
27
43
 
28
- ### Scaffold a new project
44
+ ### 🏗️ Scaffold a new project
29
45
 
30
46
  ```bash
31
47
  npx degit docsector/docsector-reader my-docs
@@ -33,7 +49,7 @@ cd my-docs
33
49
  npm install
34
50
  ```
35
51
 
36
- ### Development
52
+ ### 💻 Development
37
53
 
38
54
  ```bash
39
55
  npx docsector dev
@@ -43,7 +59,7 @@ npx quasar dev
43
59
 
44
60
  The documentation site will be available at **http://localhost:8181**.
45
61
 
46
- ### Production Build
62
+ ### 🏭 Production Build
47
63
 
48
64
  ```bash
49
65
  npx docsector build
@@ -53,7 +69,9 @@ npx quasar build
53
69
 
54
70
  Output is placed in `dist/spa/` — ready to deploy to any static hosting.
55
71
 
56
- ## Configuration
72
+ ---
73
+
74
+ ## ⚙️ Configuration
57
75
 
58
76
  Edit `docsector.config.js` at the project root:
59
77
 
@@ -85,7 +103,9 @@ export default {
85
103
  }
86
104
  ```
87
105
 
88
- ## Project Structure
106
+ ---
107
+
108
+ ## 📁 Project Structure
89
109
 
90
110
  ```
91
111
  ├── docsector.config.js # Branding, links, languages
@@ -103,9 +123,11 @@ export default {
103
123
  └── public/ # Static assets (logo, flags, icons)
104
124
  ```
105
125
 
106
- ## Adding Pages
126
+ ---
127
+
128
+ ## 📄 Adding Pages
107
129
 
108
- 1. Register in `src/pages/index.js`:
130
+ 1️⃣ Register in `src/pages/index.js`:
109
131
 
110
132
  ```javascript
111
133
  export default {
@@ -125,24 +147,28 @@ export default {
125
147
  }
126
148
  ```
127
149
 
128
- 2. Create Markdown files:
150
+ 2️⃣ Create Markdown files:
129
151
 
130
152
  ```
131
153
  src/pages/guide/my-page.overview.en-US.md
132
154
  src/pages/guide/my-page.overview.pt-BR.md
133
155
  ```
134
156
 
135
- ## CLI Commands
157
+ ---
158
+
159
+ ## 🖥️ CLI Commands
136
160
 
137
161
  ```bash
138
- docsector dev # Start dev server (port 8181)
139
- docsector dev --port 3000 # Custom port
140
- docsector build # Build for production
141
- docsector serve # Serve production build
142
- docsector help # Show help
162
+ docsector dev # 💻 Start dev server (port 8181)
163
+ docsector dev --port 3000 # 🔧 Custom port
164
+ docsector build # 🏭 Build for production
165
+ docsector serve # 🌐 Serve production build
166
+ docsector help # Show help
143
167
  ```
144
168
 
145
- ## Programmatic API
169
+ ---
170
+
171
+ ## 🔌 Programmatic API
146
172
 
147
173
  ```javascript
148
174
  import { createDocsector, definePage } from '@docsector/docsector-reader'
@@ -153,23 +179,31 @@ const config = createDocsector({
153
179
  })
154
180
  ```
155
181
 
156
- ## Tech Stack
182
+ ---
183
+
184
+ ## 🛠️ Tech Stack
157
185
 
158
- - **Vue 3** (Composition API + `<script setup>`)
159
- - **Quasar v2** (UI framework)
160
- - **Vite** (Build tool)
161
- - **Vuex 4** (State management)
162
- - **vue-i18n 9** (Internationalization)
163
- - **markdown-it** (Markdown parsing)
164
- - **Prism.js** (Syntax highlighting)
165
- - **HJSON** (Human-friendly JSON for locale files)
186
+ | Technology | Purpose |
187
+ |---|---|
188
+ | **Vue 3** | Composition API + `<script setup>` |
189
+ | **Quasar v2** | UI framework |
190
+ | **Vite** | Build tool |
191
+ | **Vuex 4** | State management |
192
+ | **vue-i18n 9** | Internationalization |
193
+ | **markdown-it** | Markdown parsing |
194
+ | **Prism.js** | Syntax highlighting |
195
+ | **HJSON** | Human-friendly JSON for locale files |
166
196
 
167
- ## Contributing
197
+ ---
198
+
199
+ ## 🤝 Contributing
168
200
 
169
201
  Contributions are welcome! Please open an issue or submit a pull request.
170
202
 
171
- ## License
203
+ ---
204
+
205
+ ## 📃 License
172
206
 
173
- Copyright (c) 2018-Present — Rodrigo Vieira (rodrigo@slayer.tech)
207
+ Copyright (c) 2018-Present — Rodrigo de Araujo Vieira
174
208
 
175
209
  [MIT License](http://en.wikipedia.org/wiki/MIT_License)
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@docsector/docsector-reader",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A documentation rendering engine built with Vue 3, Quasar v2 and Vite. Transform Markdown into beautiful, navigable documentation sites.",
5
5
  "productName": "Docsector Reader",
6
- "author": "Rodrigo Vieira <rodrigo@slayer.tech>",
6
+ "author": "Rodrigo de Araujo Vieira",
7
7
  "license": "MIT",
8
8
  "private": false,
9
9
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * forked from https://github.com/quasarframework/app-extension-qzoom
3
- * converted from Vue 2 to Vue 3 by Rodrigo Vieira
3
+ * converted from Vue 2 to Vue 3 by Rodrigo de Araujo Vieira
4
4
  * author: Jeff Galbraith
5
5
  */
6
6