-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added github-pages and typedoc
- Loading branch information
1 parent
ecf1ff4
commit 3d8af7e
Showing
4 changed files
with
44 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
coverage | ||
docs |
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,25 @@ | ||
prepare-release: | ||
npm install | ||
npm lint | ||
npm prettier:ci | ||
npm test | ||
npm build | ||
.PHONY: prepare-release | ||
|
||
build-docs: | ||
npx rimraf ./docs | ||
npx typedoc --options ./typedoc.js | ||
.PHONY: build-docs | ||
|
||
publish-docs: build-docs | ||
rm -rf /tmp/persian-tools-docs | true | ||
mkdir /tmp/persian-tools-docs | ||
cp -r ./docs /tmp/persian-tools-docs | ||
cd /tmp/persian-tools-docs && \ | ||
git clone --single-branch --branch gh-pages [email protected]:persian-tools/persian-tools.git && \ | ||
cd /tmp/persian-tools-docs && \ | ||
ls -la | ||
git add --all && \ | ||
git commit -m "meta: Update docs" && \ | ||
git push origin gh-pages | ||
.PHONY: publish-docs |
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,14 @@ | ||
module.exports = { | ||
out: "./docs/", | ||
readme: "README.md", | ||
name: "Persian Tools", | ||
includes: "./src", | ||
exclude: ["**/test/**/*", "**/*.js", "**/dist/**/*", "**/src/dummy/**"], | ||
mode: "modules", | ||
excludeExternals: true, | ||
includeDeclarations: true, | ||
includeVersion: true, | ||
excludeNotExported: true, | ||
excludePrivate: false, | ||
experimentalDecorators: true, | ||
}; |