Skip to content

Commit edac7d3

Browse files
authored
New larvitar docs and improvements (#407)
* init docs2 * feat: guide and init api * fix: .gitignore for docs * feat: initializing API * feat: parsing * feat: parsing and store * fix: added loaders * feat: updated docs and new manager * fix: upgrade to docs vuepress * fix: version * fix: deploy * fix: base url * fix: install in wf * fix: deps * fix: CNAME path * fix: added CNAME * fix: copy examples in build * fix: larvitar build for examples and dev * fix: examples path * fix: removed dist * fix: workflows * fix: added modules * fix: added modules * fix: added pr workflow * fix: broken links * fix: SeriesManager renamed to ImageManager * fix: names * fix: fileManager check * fix: added deprecation warnings * fix: typo * fix: missing files * fix: base example * fix: readme version * fix: 3.0.0-beta.1 version
1 parent 7ad8f91 commit edac7d3

File tree

324 files changed

+5461
-266003
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

324 files changed

+5461
-266003
lines changed

.github/workflows/build-docs.yml

Lines changed: 35 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
name: CI-docs
22

33
on:
4-
pull_request:
5-
types:
6-
- opened
7-
- reopened
8-
- synchronize
4+
push:
5+
branches:
6+
- master
97

108
jobs:
119
build:
1210
runs-on: ubuntu-latest
1311

1412
steps:
15-
# CLone repo at current branch
13+
# Clone repo at current branch
1614
- name: Clone repo
1715
uses: actions/checkout@v4
1816
with:
@@ -29,31 +27,41 @@ jobs:
2927
# Install node modules
3028
- name: Install node modules
3129
run: |
32-
yarn install
30+
yarn install --frozen-lockfile
3331
34-
# Clone template
35-
- name: Clone docdash template
36-
uses: actions/checkout@v4
37-
with:
38-
repository: clenemt/docdash
39-
path: ./template/docdash/
32+
# Generate docs
33+
- name: Generate docs
34+
run: |
35+
yarn run docs:build
4036
41-
# Install docdash node modules
42-
- name: Install node modules
43-
working-directory: ./template/docdash/
37+
# Generate Build
38+
- name: Generate build
4439
run: |
45-
yarn install
40+
yarn run build
4641
47-
# Generate docs
48-
- name: Generate docs
42+
# Copy larvitar.js
43+
- name: Copy larvitar build for examples
44+
run: |
45+
cp dist/larvitar.js docs/.vuepress/dist/assets
46+
47+
# Copy CNAME
48+
- name: Copy CNAME
49+
run: |
50+
cp docs/CNAME docs/.vuepress/dist
51+
52+
# Copy Examples
53+
- name: Copy Examples
4954
run: |
50-
yarn generate-docs
55+
cp -R docs/examples docs/.vuepress/dist
5156
52-
# Commit docs on current branch (update pull request)
53-
- name: Commit docs
54-
uses: actions-js/push@master
57+
# Deploy to GitHub Pages
58+
- name: Deploy to GitHub Pages
59+
uses: crazy-max/ghaction-github-pages@v4
5560
with:
56-
github_token: ${{ secrets.GITHUB_TOKEN }}
57-
message: "Update docs"
58-
branch: ${{ github.head_ref }}
59-
empty: true
61+
# deploy to gh-pages branch
62+
target_branch: gh-pages
63+
# deploy the default output dir of VuePress
64+
build_dir: docs/.vuepress/dist
65+
env:
66+
# @see https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret
67+
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}

.github/workflows/deploy.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,25 @@ jobs:
1717
steps:
1818
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
1919
- uses: actions/checkout@v4
20+
with:
21+
token: ${{ secrets.GIT_TOKEN }}
2022

2123
# Setup node environment
2224
- name: Setup Node.js environment
2325
uses: actions/setup-node@v4
2426
with:
2527
node-version: "20"
2628

29+
# Install node modules
30+
- name: Install node modules
31+
run: |
32+
yarn install --frozen-lockfile
33+
34+
# Generate Build
35+
- name: Generate build
36+
run: |
37+
yarn run build
38+
2739
# Clean examples and docs file
2840
- name: Clean examples and docs file
2941
run: |

.github/workflows/pr.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI-PR
2+
3+
# Controls when the action will run. Triggers the workflow on push or pull request
4+
# events but only for the master branch
5+
on:
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
9+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
10+
jobs:
11+
# This workflow contains a single job called "build"
12+
build:
13+
# The type of runner that the job will run on
14+
runs-on: ubuntu-latest
15+
16+
# Steps represent a sequence of tasks that will be executed as part of the job
17+
steps:
18+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
19+
- uses: actions/checkout@v4
20+
with:
21+
token: ${{ secrets.GIT_TOKEN }}
22+
23+
# Setup node environment
24+
- name: Setup Node.js environment
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: "20"
28+
29+
# Install node modules
30+
- name: Install node modules
31+
run: |
32+
yarn install --frozen-lockfile
33+
34+
# Generate docs
35+
- name: Generate docs
36+
run: |
37+
yarn run docs:build
38+
39+
# Generate Build
40+
- name: Generate build
41+
run: |
42+
yarn run build

.gitignore

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,14 @@ yarn-error.log*
1818
*.sln
1919
*.sw?
2020

21-
# JsDocs templates directory
22-
template/docdash/
23-
2421
# TS coverage reports
2522
/coverage-ts
23+
24+
# docs
25+
docs/.vuepress/.cache/
26+
docs/.vuepress/.temp/
27+
docs/.vuepress/dist/
28+
docs_legacy/*
29+
30+
# build files
31+
dist/*

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
## Dicom Image Toolkit for CornerstoneJS
1010

11-
### Current version: 2.7.3
11+
### Current version: 3.0.0-beta.1
1212

1313
### Latest Published Release: 2.7.3
1414

dist/imaging/imageAnonymization.d.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

dist/imaging/imageColormaps.d.ts

Lines changed: 0 additions & 47 deletions
This file was deleted.

dist/imaging/imageContours.d.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

dist/imaging/imageCustomization.d.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

dist/imaging/imageIo.d.ts

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)