Commit b015329
feat(docs): add VitePress documentation (#9463)
* feat(docs): add VitePress documentation
* feat(docs): switch to npm and add GitHub Pages deployment
* fix: add semicolons to method signatures in API docs
* fix: add eslint-skip comments to code blocks in documentation
* fix: properly format JSON code blocks in documentation
* feat(docs): add PR preview deployment for documentation
* fix: resolve dead links in documentation
* Refactor documentation for consistency and clarity
- Updated JSON examples in localization, metadata, multilanguage, and settings guides to ensure consistent formatting and clarity.
- Improved TypeScript code snippets across various guides, including presence, slideshow, and structure, for better readability and adherence to coding standards.
- Removed unnecessary comments and adjusted spacing for improved visual structure.
- Enhanced explanations and examples in the presence class and slideshow sections to provide clearer guidance on usage.
* fix: update base path in VitePress config for correct routing
* feat: update PR preview comment logic to update existing comments
* fix: standardize quotes in deploy-docs.yml for consistency
* Update docs/api/utility-functions.md
Co-authored-by: Dark_Ville <[email protected]>
Signed-off-by: Florian Metz <[email protected]>
* Update docs/v1/guide/slideshows.md
Co-authored-by: Dark_Ville <[email protected]>
Signed-off-by: Florian Metz <[email protected]>
* Update docs/v1/guide/settings.md
Co-authored-by: Dark_Ville <[email protected]>
Signed-off-by: Florian Metz <[email protected]>
* Update docs/v1/guide/slideshows.md
Co-authored-by: Dark_Ville <[email protected]>
Signed-off-by: Florian Metz <[email protected]>
* Update docs/v1/guide/settings.md
Co-authored-by: Dark_Ville <[email protected]>
Signed-off-by: Florian Metz <[email protected]>
* Update docs/v1/guide/presence-class.md
Co-authored-by: Dark_Ville <[email protected]>
Signed-off-by: Florian Metz <[email protected]>
* docs: update imageKey documentation to recommend direct URLs
* docs: standardize property tables in presence documentation
* docs: update all imageKey examples to use direct URLs
* docs: update all imageKey examples to use direct URLs
* docs: update largeImageKey in setActivity example to use a direct URL
* feat: activity forwarding
* feat: add forwarding image
* docs: improve documentation clarity and usability
- Update commenting best practices to be more balanced
- Add CLI help command documentation
- Add information about using og:description meta tags
- Simplify DevTools access instructions
- Generalize page source viewing instructions
- Update example code to use direct image URLs
* docs: remove outdated multilanguage.md file and update references
- Removed the outdated multilanguage.md file as it's been replaced by localization.md
- Updated references in iframes.md, slideshows.md, and settings.md to point to localization.md instead
* chore: remove old multilang
* docs: implement Bas950's review comments
- Add documentation for browsingTimestamp constant, ActivityType and Assets enums
- Update examples to use [presenceData.startTimestamp, presenceData.endTimestamp] = getTimestamps(FromMedia)
- Update examples to use imgur links for hardcoded image URLs
- Add information about validating activities with --validate flag
- Update examples to use destructured data like const { pathname, href } = document.location
* docs: update documentation with best practices and correct examples
- Update utility-functions.md with proper destructuring examples
- Update best-practices.md with improved timestamp handling and document.location destructuring
- Update iframes.md and media.md examples to use best practices
- Remove mentions of PreMiD application (only extension now)
- Update localization.md to use getStrings method correctly
- Fix various code examples to follow best practices
* docs: remove redundant metadata.md file
- Remove docs/v1/api/metadata.md as it's redundant with docs/v1/api/metadata-json.md
- metadata-json.md is more comprehensive and user-friendly
- This avoids confusion by having only one file documenting the metadata.json structure
* docs: update metadata link in API index
- Update link from /v1/api/metadata to /v1/api/metadata-json
- Fix dead link after removing the redundant metadata.md file
* docs: add guidelines page
- Add comprehensive guidelines for PreMiD activities
- Include rules for websites, metadata, code requirements, and more
- Update sidebar to include the new guidelines page
* docs: add references to guidelines throughout documentation
- Add link to guidelines in first-activity.md for new developers
- Add reference to metadata guidelines in metadata.md
- Add code guidelines section in presence-class.md
- Add warning about button guidelines in presence-class.md
* chore: fix eslint
* chore: review comments
* docs: fix getPageVariable example and update utility functions to use Assets enum
* docs: improve getPageVariable example with proper destructuring and type annotations
* chore: add forwarding to sidebar
* chore: lint
* chore: enable search and add special episode formatting
* chore: lint
* fix: update URL references to use document.location.href instead of document.URL
* Add tape recordings for creating and developing activities
- Created a new tape for the activity creation process, capturing the command execution and user inputs.
- Added a tape for the activity development process, documenting the command and a pause for observation.
* fix: update create-activity tape to include user ID input
* fix: update description for timestamp setting to clarify functionality
* chore: update stuff
* fix: browsingTimestamp and ActivityAssets
* feat: dep updates, favicon, allowURLOverrides
* feat: new presencedata fields
* chore: lint
* chore: lint
---------
Signed-off-by: Florian Metz <[email protected]>
Co-authored-by: Dark_Ville <[email protected]>
Co-authored-by: Bas950 <[email protected]>1 parent 93b6920 commit b015329
File tree
45 files changed
+10061
-7
lines changed- .github/workflows
- @types/premid
- docs
- .vitepress
- images
- public/tapes
- tapes
- v1
- api
- examples
- guide
- v2
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
45 files changed
+10061
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
0 commit comments