Skip to content

Commit

Permalink
Merge pull request #40 from thefill/feature-doc-improvements
Browse files Browse the repository at this point in the history
Feature doc improvements
  • Loading branch information
thefill committed May 19, 2019
2 parents ff50217 + c3db2cd commit 35cd6b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ jobs:
command: |
npm run docs
- run:
name: Verify
command: |
sed -e '/<\/body>/r src/docs-partials/api-docs.style.html' -e '//N' docs/archive/0.0.3/index.html
- run:
name: Publish docs
command: |
Expand All @@ -149,6 +154,7 @@ jobs:

workflows:
version: 2

build-test:
jobs:
- setup:
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jetli",
"version": "0.0.3",
"version": "0.0.4",
"description": "Dependency injector",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -28,8 +28,8 @@
"docs:api-readme": "concat -o API-README.md BASE-README.md src/docs-partials/readme.api-documentation.md",
"docs:html": "typedoc --mode modules --exclude \"**/*+(index|.spec|.e2e).ts\" --tsconfig tsconfig.esm.json --hideGenerator --readme API-README.md --out docs/archive/$npm_package_version src",
"docs:postprocess": "run-s docs:html-style docs:html-script && cp -R docs/archive/$npm_package_version/* docs/",
"docs:html-style": "sed -e '/<\\/head>/r src/docs-partials/api-docs.style.html' -e '//N' docs/archive/$npm_package_version/index.html > docs/archive/$npm_package_version/index.html.tmp && mv docs/archive/$npm_package_version/index.html.tmp docs/archive/$npm_package_version/index.html",
"docs:html-script": "sed -e '/<\\/body>/r src/docs-partials/api-docs.script.html' -e '//N' docs/archive/$npm_package_version/index.html > docs/archive/$npm_package_version/index.html.tmp && mv docs/archive/$npm_package_version/index.html.tmp docs/archive/$npm_package_version/index.html",
"docs:html-style": "sed -i.bak -e '/main\\.css/r src/docs-partials/api-docs.style.html' -e '//N' docs/archive/$npm_package_version/index.html && rm docs/archive/$npm_package_version/index.html.bak",
"docs:html-script": "sed -i.bak -e '/<\/script>/r src/docs-partials/api-docs.script.html' -e '//N' docs/archive/$npm_package_version/index.html && rm docs/archive/$npm_package_version/index.html.bak",
"clean": "run-p clean:build clean:docs clean:test",
"clean:build": "rimraf dist",
"clean:docs": "rimraf docs && rimraf .cache && rimraf BASE-README.md && rimraf API-README.md",
Expand Down

0 comments on commit 35cd6b2

Please sign in to comment.