varvara-typedoc-theme 0.1.0

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Marc Mariné
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,64 @@
1
+ # Varvara TypeDoc Theme
2
+
3
+ Varvara TypeDoc Theme is a [custom theme](https://typedoc.org/documents/Development.Custom_Themes.html) for TypeDoc, designed to provide an seamless documentation experience for TypeScript projects.
4
+
5
+ [![license](https://img.shields.io/github/license/marcmarine/varvara-js)](https://github.com/marcmarine/varvara-js/blob/main/LICENSE)
6
+
7
+ ## Prerequisites
8
+
9
+ Ensure TypeDoc is [installed](https://typedoc.org/index.html#quick-start) in your project.
10
+
11
+ ## Installation
12
+
13
+ Install the Varvara TypeDoc theme as a development dependency:
14
+
15
+ ```bash
16
+ npm install varvara-typedoc-theme --save-dev
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ### Method 1: Command-Line Interface (CLI)
22
+
23
+ Use the following command to generate documentation with the Varvara theme:
24
+
25
+ ```bash
26
+ npx typedoc --plugin varvara-typedoc-theme --theme varvara
27
+ ```
28
+
29
+ ### Method 2: Configuration File
30
+
31
+ Create a `typedoc.js` configuration file in your project's root directory:
32
+
33
+ > [!NOTE]
34
+ > You can use various TypeDoc [configuration files](https://typedoc.org/documents/Options.Configuration.html) to customize your documentation generation.
35
+
36
+ ```js
37
+ /** @type {Partial<import("typedoc").TypeDocOptions>} */
38
+ const config = {
39
+ // Specify the Varvara theme plugin
40
+ plugin: ['varvara-typedoc-theme'],
41
+
42
+ // Set the theme to Varvara
43
+ theme: 'varvara',
44
+
45
+ // Optional: Include version information
46
+ includeVersion: true
47
+
48
+ // Additional TypeDoc configuration options
49
+ // ... other options as needed
50
+ }
51
+
52
+ export default config
53
+ ```
54
+
55
+ > [!IMPORTANT]
56
+ > The theme must be explicitly specified. If not set, the plugin will not be loaded by default.
57
+
58
+ ## Contributing
59
+
60
+ Feel free to explore, test, and provide feedback. Your contribution is highly appreciated as we work towards improving and stabilizing the project.
61
+
62
+ ## License
63
+
64
+ This project is licensed under the [MIT License](https://github.com/marcmarine/varvara-js/blob/main/LICENSE).