-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
4,698 additions
and
5,122 deletions.
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 @@ | ||
../packages/plugin/LICENSE.md |
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 @@ | ||
../packages/plugin/README.md |
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,53 +1,89 @@ | ||
name: Publish to npm | ||
name: Build and Publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
on: push | ||
|
||
jobs: | ||
build-and-publish: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./packages/plugin | ||
env: | ||
NPM_DIFUKS_TOKEN: ${{ secrets.NPM_DIFUKS_TOKEN }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.PERSONAL_TOKEN }} | ||
fetch-depth: 0 | ||
|
||
- name: Cache yarn | ||
uses: actions/cache@v3 | ||
# for yarn version check | ||
- if: github.ref != 'refs/heads/main' | ||
run: | | ||
git fetch --unshallow origin main | ||
- uses: actions/setup-node@v4 | ||
with: | ||
path: | | ||
.yarn/cache | ||
.yarn/install-state.gz | ||
key: ${{ runner.os }}-yarn-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
node-version-file: .nvmrc | ||
cache: yarn | ||
cache-dependency-path: yarn.lock | ||
|
||
- name: Install modules | ||
run: yarn install | ||
run: yarn | ||
|
||
- name: Build libs | ||
- name: Build plugin | ||
run: yarn build | ||
|
||
- name: Eslint | ||
- name: Lint plugin | ||
run: yarn lint | ||
|
||
- name: Check packages versions | ||
if: github.ref != 'refs/heads/main' | ||
run: yarn version check | ||
|
||
- name: Apply versions | ||
if: github.ref == 'refs/heads/main' | ||
run: yarn version apply | ||
|
||
- name: Publish package | ||
if: github.ref == 'refs/heads/main' | ||
run: yarn npm publish --tolerate-republish | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
if: github.ref == 'refs/heads/main' | ||
with: | ||
commit_message: | | ||
ci: Release packages | ||
[skip ci] | ||
- name: Get package version | ||
if: github.ref == 'refs/heads/main' | ||
id: package-version | ||
uses: martinbeentjes/[email protected] | ||
with: | ||
path: packages/plugin | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
if: github.ref == 'refs/heads/main' | ||
with: | ||
tagging_message: v${{ steps.package-version.outputs.current-version }} | ||
commit_message: | | ||
ci: Release packages | ||
[skip ci] | ||
- name: Get pull request info | ||
if: github.ref == 'refs/heads/main' | ||
id: pull-request-info | ||
uses: actions-ecosystem/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: ncipollo/release-action@v1 | ||
id: create-release | ||
if: github.ref == 'refs/heads/main' | ||
with: | ||
skipIfReleaseExists: true | ||
makeLatest: true | ||
name: Release ${{ steps.package-version.outputs.current-version }} | ||
body: ${{ steps.pull-request-info.outputs.body }} | ||
tag: v${{ steps.package-version.outputs.current-version }} |
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ docs | |
.idea/ | ||
.pnp.* | ||
.yarn/* | ||
node_modules | ||
!.yarn/patches | ||
!.yarn/plugins | ||
!.yarn/releases | ||
|
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 @@ | ||
v20.13.0 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,2 @@ | ||
releases: | ||
typedoc-theme-hierarchy: major |
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 |
---|---|---|
@@ -1,55 +1,7 @@ | ||
{ | ||
"name": "typedoc-theme-hierarchy", | ||
"version": "4.1.3", | ||
"license": "MIT", | ||
"main": "dist/index.js", | ||
"repository": "[email protected]:DiFuks/typedoc-theme-hierarchy.git", | ||
"homepage": "https://github.com/DiFuks/typedoc-theme-hierarchy", | ||
"description": "Hierarchy theme for typedoc", | ||
"keywords": [ | ||
"typedoc-theme", | ||
"typedocplugin" | ||
"name": "root", | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"files": [ | ||
"dist", | ||
"readme.md" | ||
], | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.com" | ||
}, | ||
"author": { | ||
"name": "Dmitry Fuks", | ||
"email": "[email protected]", | ||
"url": "https://github.com/DiFuks" | ||
}, | ||
"devDependencies": { | ||
"@rushstack/eslint-patch": "^1.1.4", | ||
"@types/fs-extra": "^9.0.13", | ||
"@types/mini-css-extract-plugin": "^2.4.0", | ||
"@types/webpack": "^5.28.0", | ||
"clean-webpack-plugin": "^4.0.0", | ||
"css-loader": "^6.5.1", | ||
"css-minimizer-webpack-plugin": "^3.3.1", | ||
"eslint": "^8.18.0", | ||
"eslint-config-fuks": "^1.6.7", | ||
"mini-css-extract-plugin": "^2.4.5", | ||
"terser-webpack-plugin": "^5.3.3", | ||
"ts-loader": "^9.4.4", | ||
"typedoc": "0.25.0", | ||
"typescript": "5.0.4", | ||
"webpack": "^5.65.0", | ||
"webpack-cli": "^4.9.1" | ||
}, | ||
"peerDependencies": { | ||
"typedoc": "^0.24.0 || ^0.25.0 || ^0.26.0" | ||
}, | ||
"scripts": { | ||
"build": "webpack && tsc --project tsconfig.build.json", | ||
"lint": "eslint \"./**/*.{ts,tsx,js}\"", | ||
"prepublishOnly": "yarn lint && yarn build" | ||
}, | ||
"dependencies": { | ||
"fs-extra": "11.1.1" | ||
}, | ||
"packageManager": "[email protected]" | ||
"packageManager": "[email protected]" | ||
} |
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,13 @@ | ||
{ | ||
"name": "example", | ||
"scripts": { | ||
"build": "tsc", | ||
"doc": "typedoc && http-server public/docs" | ||
}, | ||
"devDependencies": { | ||
"http-server": "14.1.1", | ||
"typedoc": "0.26.2", | ||
"typedoc-theme-hierarchy": "workspace:*", | ||
"typescript": "5.2.2" | ||
} | ||
} |
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,6 @@ | ||
/** | ||
* Main interface | ||
*/ | ||
export interface Main { | ||
getDate(date: any): string; | ||
} |
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,5 @@ | ||
import { User } from './User'; | ||
|
||
export interface Admin extends User { | ||
role: 'admin'; | ||
} |
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,4 @@ | ||
export interface User { | ||
name: string; | ||
age: number; | ||
} |
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,9 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "ESNext", | ||
"outDir": "./dist", | ||
"strict": false, | ||
"noEmit": false, | ||
"skipLibCheck": true, | ||
}, | ||
} |
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,9 @@ | ||
{ | ||
"entryPoints": ["src"], | ||
"entryPointStrategy": "expand", | ||
"out": "public/docs", | ||
"plugin": ["typedoc-theme-hierarchy"], | ||
"theme": "hierarchy", | ||
"tsconfig": "./tsconfig.json", | ||
"name": "Project name" | ||
} |
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,56 @@ | ||
{ | ||
"name": "typedoc-theme-hierarchy", | ||
"version": "4.1.3", | ||
"license": "MIT", | ||
"main": "dist/index.js", | ||
"repository": "[email protected]:DiFuks/typedoc-theme-hierarchy.git", | ||
"homepage": "https://github.com/DiFuks/typedoc-theme-hierarchy", | ||
"description": "Hierarchy theme for typedoc", | ||
"keywords": [ | ||
"typedoc-theme", | ||
"typedocplugin" | ||
], | ||
"files": [ | ||
"dist", | ||
"LICENSE.MD", | ||
"README.md" | ||
], | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.com" | ||
}, | ||
"author": { | ||
"name": "Dmitry Fuks", | ||
"email": "[email protected]", | ||
"url": "https://github.com/DiFuks" | ||
}, | ||
"devDependencies": { | ||
"@rushstack/eslint-patch": "^1.1.4", | ||
"@types/fs-extra": "^9.0.13", | ||
"@types/mini-css-extract-plugin": "^2.4.0", | ||
"@types/webpack": "^5.28.0", | ||
"clean-webpack-plugin": "^4.0.0", | ||
"css-loader": "^6.5.1", | ||
"css-minimizer-webpack-plugin": "^3.3.1", | ||
"eslint": "^8.18.0", | ||
"eslint-config-fuks": "2.0.0", | ||
"mini-css-extract-plugin": "^2.4.5", | ||
"terser-webpack-plugin": "^5.3.3", | ||
"ts-loader": "^9.4.4", | ||
"typedoc": "0.26.2", | ||
"typescript": "5.5.2", | ||
"webpack": "5.92.1", | ||
"webpack-cli": "5.1.4" | ||
}, | ||
"peerDependencies": { | ||
"typedoc": "^0.24.0 || ^0.25.0 || ^0.26.0" | ||
}, | ||
"scripts": { | ||
"build": "webpack && tsc --project tsconfig.build.json", | ||
"lint": "eslint \"./**/*.{ts,tsx,js}\"", | ||
"prepublishOnly": "yarn lint && yarn build" | ||
}, | ||
"dependencies": { | ||
"fs-extra": "11.1.1" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
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,20 @@ | ||
import { type Application, JSX } from 'typedoc'; | ||
|
||
import { OverrideTheme } from './themes/OverrideTheme'; | ||
|
||
/** | ||
* Инициализирует плагин с темой. | ||
*/ | ||
export const load = (app: Application): void => { | ||
app.renderer.hooks.on( | ||
`head.end`, | ||
(context): JSX.Element => <link rel='stylesheet' href={context.relativeURL(`assets/hierarchy.css`)} />, | ||
); | ||
|
||
app.renderer.hooks.on( | ||
`body.end`, | ||
(context): JSX.Element => <script src={context.relativeURL(`assets/hierarchy.js`)} />, | ||
); | ||
|
||
app.renderer.defineTheme(`hierarchy`, OverrideTheme); | ||
}; |
Oops, something went wrong.