瀏覽代碼

Rename README, fix codepen link

master
Palash Bansal 3 年之前
父節點
當前提交
177c305060
沒有連結到貢獻者的電子郵件帳戶。
共有 3 個檔案被更改,包括 6 行新增4 行删除
  1. 1
    1
      .github/workflows/deploy-pages.yml
  2. 2
    2
      README.md
  3. 3
    1
      examples/js-utils/simple-code-preview.mjs

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

cache: 'npm' cache: 'npm'
- run: npm ci - run: npm ci
- run: mkdir _site - run: mkdir _site
- run: mv -t _site docs dist examples Readme.md LICENSE
- run: mv -t _site docs dist examples README.md LICENSE
- name: Setup Pages - name: Setup Pages
uses: actions/configure-pages@v3 uses: actions/configure-pages@v3
- name: Upload artifact - name: Upload artifact

Readme.md → README.md 查看文件

Then, import the viewer and create a new instance: Then, import the viewer and create a new instance:


```typescript ```typescript
import {ThreeViewer} from 'threepipe'
import {IObject3D} from './IObject'
import {ThreeViewer, IObject3D} from 'threepipe'
// Create a viewer // Create a viewer
const viewer = new ThreeViewer({canvas: document.getElementById('three-canvas') as HTMLCanvasElement}) const viewer = new ThreeViewer({canvas: document.getElementById('three-canvas') as HTMLCanvasElement})



+ 3
- 1
examples/js-utils/simple-code-preview.mjs 查看文件

scripts, scripts,
scripts.map(s=>s.textContent ? 'js' : s.split('.').pop()), // title scripts.map(s=>s.textContent ? 'js' : s.split('.').pop()), // title
scripts.map(s=>(typeof s === 'string' && s.endsWith('.js')) ? s : 'https://github.com/repalash/threepipe/tree/master/examples/'+ window.location.pathname.split('/examples/').pop().replace('index.html', '')+(s.textContent ? 'index.html' : s)), // todo: github link scripts.map(s=>(typeof s === 'string' && s.endsWith('.js')) ? s : 'https://github.com/repalash/threepipe/tree/master/examples/'+ window.location.pathname.split('/examples/').pop().replace('index.html', '')+(s.textContent ? 'index.html' : s)), // todo: github link
(c)=>c.replaceAll(" from 'threepipe'", " from 'https://repalash.com/threepipe/dist/index.mjs'"), // todo: fix link
(c)=>c
.replaceAll(" from 'threepipe'", " from 'https://threepipe.org/dist/index.mjs'")
.replaceAll(" from '../", " from 'https://threepipe.org/examples/"),
{ {
title: 'ThreePipe: ' + document.title, title: 'ThreePipe: ' + document.title,
css, css,

Loading…
取消
儲存