瀏覽代碼

Add new examples to index, add src to CI

master
Palash Bansal 2 年之前
父節點
當前提交
2a3fb3f51d
沒有連結到貢獻者的電子郵件帳戶。
共有 3 個檔案被更改,包括 5 行新增3 行删除
  1. 2
    2
      .github/workflows/deploy-pages.yml
  2. 2
    0
      examples/index.html
  3. 1
    1
      examples/picking-plugin/index.html

+ 2
- 2
.github/workflows/deploy-pages.yml 查看文件

- run: npm ci # this will also run `npm run prepare` which will build - run: npm ci # this will also run `npm run prepare` which will build
- run: npm run docs - run: npm run docs
- run: mkdir _site - run: mkdir _site
- run: mv -t _site docs dist examples README.md LICENSE index.html
- run: mv -t _site src docs dist examples README.md LICENSE index.html
- run: mkdir -p _site/plugins - run: mkdir -p _site/plugins
- run: find plugins -maxdepth 2 -type d \( -name dist -o -name docs \) -exec sh -c "mkdir -p _site/{} && cp -r {} _site/{}/.." \;
- run: find plugins -maxdepth 2 -type d \( -name dist -o -name docs -name src \) -exec sh -c "mkdir -p _site/{} && cp -r {} _site/{}/.." \;
- name: Setup Pages - name: Setup Pages
uses: actions/configure-pages@v3 uses: actions/configure-pages@v3
- name: Upload artifact - name: Upload artifact

+ 2
- 0
examples/index.html 查看文件

</ul> </ul>
<h2 class="category">Interaction</h2> <h2 class="category">Interaction</h2>
<ul> <ul>
<li><a href="./picking-plugin/">Picking (Selection) Plugin </a></li>
<li><a href="./camera-view-plugin/">Camera View (Animation) Plugin </a></li>
<li><a href="./dropzone-plugin/">Dropzone (Drag & Drop) Plugin </a></li> <li><a href="./dropzone-plugin/">Dropzone (Drag & Drop) Plugin </a></li>
<li><a href="./fullscreen-plugin/">FullScreen Plugin </a></li> <li><a href="./fullscreen-plugin/">FullScreen Plugin </a></li>
</ul> </ul>

+ 1
- 1
examples/picking-plugin/index.html 查看文件

<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Picking Plugin</title>
<title>Picking (Selection) Plugin</title>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Import maps polyfill --> <!-- Import maps polyfill -->
<!-- Remove this when import maps will be widely supported --> <!-- Remove this when import maps will be widely supported -->

Loading…
取消
儲存