-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: typedoc cli packages #163
Open
cabljac
wants to merge
45
commits into
main
Choose a base branch
from
typedoc-cli
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,459
−220
Open
Changes from 35 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
6c6f26a
feat: start setting up typedoc cli
cabljac 42e8e16
chore: generate and rename typedoc parsing
cabljac ecae868
chore: add reader for typedoc
cabljac 9bf27fe
chore: add class for config
cabljac e57c6d9
chore: generate docs.refs.json
cabljac c9d021f
chore: generate a page for each reference
cabljac 445e0fd
chore: generate the reference json
cabljac 8a3dfd6
chore: update format of docs.refs.json
cabljac ecda8a4
chore: handle references on api layer
cabljac be1ad0c
chore: started UI work
cabljac 2ccbce4
feat: add references to frontend
cabljac 7843371
chore: fix handling of references in config
cabljac eb139ef
feat: generate overview page
cabljac d20eb93
chore: refactor createIndexFile out
cabljac 465e9e4
chore: update generator
cabljac c030427
feat: categorize sidebar by kind
cabljac 722516d
fix: resolved LPM with typedoc references
cabljac c8ea0ca
fix: resolved locales with references
cabljac fab0fb2
cli: updated overview generated page for refs
cabljac 6f5e71e
cli: add simple error handling
cabljac 885d92a
docs: added instructions for typedoc support to docs
cabljac 0ce810d
chore: update function name in example file
cabljac 6ff680b
chore: update README.md and CHANGELOG.md and docs
cabljac 040885b
chore: prepare for publishing to pub.dev
cabljac 353c63a
chore: add CI to generate dart_cli binaries
cabljac 7f66d77
chore: update npm package
cabljac df7c409
chore: make CLI more friendly
cabljac cfb0bcc
chore: fix typo
cabljac e91b3d7
fix: only delete docs.refs.json when it exists
cabljac e0110a6
chore: publish new version to npm
cabljac 3f973d7
fix: extract tab content properly in prod
cabljac 78912c3
chore: merge in from main
cabljac 4c9e943
CI: add main to branches in workflow
cabljac 95270db
Update docs/typedoc.mdx
cabljac c7d0260
Update packages/dart_cli/lib/src/typedoc.dart
cabljac f0652e7
chore: sync with main
cabljac a746131
chore: update project config
cabljac a121497
feat: add sidebar to template in dart_cli
cabljac 6044808
chore: format
cabljac 9118f11
feat: default npx to json
cabljac ade4d95
chore: publish new release of npx cli
cabljac b6904cd
chore: sync with main
cabljac f3002bf
chore: merge in main
cabljac 99ab320
fix: overview path in sidebar must be relative
cabljac cb4d9a0
chore: remove logs
cabljac File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: build_dart | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- typedoc-cli | ||
- main | ||
|
||
jobs: | ||
build_linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: dart-lang/setup-dart@v1 | ||
|
||
- name: Install dependencies | ||
working-directory: packages/dart_cli | ||
run: dart pub get | ||
|
||
- name: Compiling | ||
working-directory: packages/dart_cli | ||
run: dart compile exe bin/docs_page.dart -o docs_page | ||
|
||
- name: Store binary | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: linux-binary | ||
path: packages/dart_cli/docs_page | ||
|
||
build_macos: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: dart-lang/setup-dart@v1 | ||
|
||
- name: Install dependencies | ||
working-directory: packages/dart_cli | ||
run: dart pub get | ||
|
||
- name: Compiling | ||
working-directory: packages/dart_cli | ||
run: dart compile exe bin/docs_page.dart -o docs_page | ||
|
||
- name: Store binary | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: macos-binary | ||
path: packages/dart_cli/docs_page | ||
|
||
build_windows: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: dart-lang/setup-dart@v1 | ||
|
||
- name: Install dependencies | ||
working-directory: packages/dart_cli | ||
run: dart pub get | ||
|
||
- name: Compiling | ||
working-directory: packages/dart_cli | ||
run: dart compile exe bin/docs_page.dart -o docs_page.exe | ||
|
||
- name: Store binary | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: windows-binary | ||
path: packages/dart_cli/docs_page.exe | ||
|
||
combine_outputs: | ||
runs-on: ubuntu-latest | ||
needs: [build_linux, build_macos, build_windows] | ||
steps: | ||
- name: Download linux artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: linux-binary | ||
path: ~/binaries/linux | ||
- name: Download macos artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: macos-binary | ||
path: ~/binaries/darwin | ||
- name: Download windows artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: windows-binary | ||
path: ~/binaries/win32 | ||
- name: Store binaries | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: binaries | ||
path: ~/binaries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
title: Typedoc Support | ||
description: Learn how to generate docs.page references using typedoc comments | ||
--- | ||
|
||
# Typedoc Support | ||
|
||
If you've added typedoc-compliant comments to your code, Docs.page is able to generate reference pages from your typedoc.json. | ||
|
||
The steps are as follows: | ||
|
||
1. In your root directory, generate your `typedoc.json` from your code, using the flag `--json`, and specifying your output path as `docs/typedoc.json`. You will have to install typedoc first, and the command should look similar to: | ||
|
||
``` | ||
npm run typedoc --json docs/typedoc.json src/index.ts | ||
``` | ||
|
||
or if you're using yarn, | ||
|
||
``` | ||
yarn typedoc --json docs/typedoc.json src/index.ts | ||
``` | ||
|
||
2. Add a `references` field to your `docs.json` or `docs.yaml` configuration file. This value specifies the folder in which your references will be generated. If you're unsure, set it as `Reference` or `API`. | ||
3. Add a `typedocEntryDir` field to your `docs.json` or `docs.yaml` configuration file. This should be set as the path of the directory where your typedoc entry file is. | ||
4. Run | ||
`docs_page typedoc` | ||
from your root directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ build/ | |
|
||
# Created by running the command in this directory, don't commit | ||
docs.yaml | ||
docs | ||
docs | ||
docs_page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
## 1.0.0 | ||
## 0.0.1 | ||
|
||
- Initial version. | ||
- prerelease version. | ||
|
||
## 0.0.2 | ||
|
||
- added `help` command and made `init` command more user-friendly | ||
|
||
## 0.0.3 | ||
|
||
- fix check for `docs.refs.json` on `typedoc` command |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file will be expanded on, but doesn't appear in the sidebar of our docs yet