From 21e1913ca81067d6a145a0d0713ba01d6e1663ed Mon Sep 17 00:00:00 2001 From: Deryk DeGuzman Date: Wed, 1 May 2024 10:56:23 -0700 Subject: [PATCH] chore: add github workflows --- .github/workflows/deploy-pr-preview.yml | 25 ++++++++++++++++++++++++ .gitignore | 4 ++++ docs/asset-manifest.json | 16 +++++++-------- docs/index.html | 2 +- docs/public/asset-manifest.json | 15 ++++++++++++++ docs/public/index.html | 1 + docs/public/robots.txt | 3 +++ docs/public/vectara-favicon.png | Bin 0 -> 2064 bytes package.json | 4 ++-- src/docs/Docs.tsx | 5 ++--- 10 files changed, 61 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/deploy-pr-preview.yml create mode 100644 docs/public/asset-manifest.json create mode 100644 docs/public/index.html create mode 100644 docs/public/robots.txt create mode 100644 docs/public/vectara-favicon.png diff --git a/.github/workflows/deploy-pr-preview.yml b/.github/workflows/deploy-pr-preview.yml new file mode 100644 index 0000000..a248a6d --- /dev/null +++ b/.github/workflows/deploy-pr-preview.yml @@ -0,0 +1,25 @@ +# .github/workflows/preview.yml +name: Deploy PR preview +concurrency: preview-${{ github.ref }} +on: + pull_request: + types: + - opened + - reopened + - synchronize + - closed +jobs: + deploy-preview: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: npm i && npm run buildDocs + env: + CI: false + if: github.event.action != 'closed' + - uses: rossjrw/pr-preview-action@v1 + with: + source-dir: ./docs/public + preview-branch: gh-pages + umbrella-dir: pr-preview + action: auto diff --git a/.gitignore b/.gitignore index 7274b6c..f956f12 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,10 @@ # Deliberately commit dist folder so we can directly consume the repo as a dependency. # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. +# build files +/docs/static +/docs/public/static + # dependencies /node_modules /.pnp diff --git a/docs/asset-manifest.json b/docs/asset-manifest.json index 185d4c0..f6959f8 100644 --- a/docs/asset-manifest.json +++ b/docs/asset-manifest.json @@ -1,15 +1,15 @@ { "files": { - "main.css": "./static/css/main.053ff0b9.css", - "main.js": "./static/js/main.9d0ebd6a.js", - "static/js/787.43483533.chunk.js": "./static/js/787.43483533.chunk.js", + "main.css": "./static/css/main.2451c968.css", + "main.js": "./static/js/main.73c91fc1.js", + "static/js/453.ebf7af86.chunk.js": "./static/js/453.ebf7af86.chunk.js", "index.html": "./index.html", - "main.053ff0b9.css.map": "./static/css/main.053ff0b9.css.map", - "main.9d0ebd6a.js.map": "./static/js/main.9d0ebd6a.js.map", - "787.43483533.chunk.js.map": "./static/js/787.43483533.chunk.js.map" + "main.2451c968.css.map": "./static/css/main.2451c968.css.map", + "main.73c91fc1.js.map": "./static/js/main.73c91fc1.js.map", + "453.ebf7af86.chunk.js.map": "./static/js/453.ebf7af86.chunk.js.map" }, "entrypoints": [ - "static/css/main.053ff0b9.css", - "static/js/main.9d0ebd6a.js" + "static/css/main.2451c968.css", + "static/js/main.73c91fc1.js" ] } \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 20c1985..f1de72a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1 +1 @@ -Vectara UI library
\ No newline at end of file +Vectara UI library
\ No newline at end of file diff --git a/docs/public/asset-manifest.json b/docs/public/asset-manifest.json new file mode 100644 index 0000000..a7625cc --- /dev/null +++ b/docs/public/asset-manifest.json @@ -0,0 +1,15 @@ +{ + "files": { + "main.css": "./static/css/main.2451c968.css", + "main.js": "./static/js/main.f22e287a.js", + "static/js/453.ebf7af86.chunk.js": "./static/js/453.ebf7af86.chunk.js", + "index.html": "./index.html", + "main.2451c968.css.map": "./static/css/main.2451c968.css.map", + "main.f22e287a.js.map": "./static/js/main.f22e287a.js.map", + "453.ebf7af86.chunk.js.map": "./static/js/453.ebf7af86.chunk.js.map" + }, + "entrypoints": [ + "static/css/main.2451c968.css", + "static/js/main.f22e287a.js" + ] +} \ No newline at end of file diff --git a/docs/public/index.html b/docs/public/index.html new file mode 100644 index 0000000..07c6ec9 --- /dev/null +++ b/docs/public/index.html @@ -0,0 +1 @@ +Vectara UI library
\ No newline at end of file diff --git a/docs/public/robots.txt b/docs/public/robots.txt new file mode 100644 index 0000000..e9e57dc --- /dev/null +++ b/docs/public/robots.txt @@ -0,0 +1,3 @@ +# https://www.robotstxt.org/robotstxt.html +User-agent: * +Disallow: diff --git a/docs/public/vectara-favicon.png b/docs/public/vectara-favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..504028d9b7ebd94e0e345fc378170707eb5b6f2d GIT binary patch literal 2064 zcmV+r2=DiaP)004R>004l5008;`004mK004C`008P>0026e000+ooVrmw00006 zVoOIv0RI600RN!9r;`8x010qNS#tmY3labT3lag+-G2N4000McNliru<_Q!IB^6N; z>3{$L2LDM!K~z}7?UrkdT~!%|pLN^!bLQ5WDFtb`h=m|YAtgo7KnWPrL?ba6g8@xL zyns=IRvMI`Vxmn{|2Rlmblafq7N!#&))CFOXHV%uIR_g-oh z4@PGIpx+Gh_w{#ipLl^$%5xS8Hv{W5eIx1ZSnG-pw*(V!S_f_^{=zoDj|h9lG$VI* z$kr$_{|L=ET!QagV^s@;@zbcqtQ;;A4gT;7Dh+T7|ACnJ> zN%x8oeCwn>Iug2l$X`}j);R6Ag)96ct|RO%2cqLL|4DHzJNyd_;Xbs2`74G+hV>x= zjqnob1lr5-M`;9+@c9vdxo13ERu?GaFDi5Hs63-(>1R3z?dQMKPVc($v<1HT+~6Am z2)~21u)K-9u0|MmZ(g$S0nSFaDnR%^hH?n-909mzW5IL|V?wO2ydSNA!uheh$Txqi zHaj&r5p3Id{_|{p{M6Spf2cU0{eBM-=?69bTu^8{2Jkka>er}>80X?<9E?@ow~hi# zKLcl9fSUZfUs-vmfIgOv>z>#v=5BSvjVoJw)zs^~zG8wEB3xF`x<+^>jfcoPBI}_W zQ?~n*d4?t5=bKxq^yE(iAOR{5WeEj{LU?lF$VEYyMOt>|!nw}mb-jyzEZ42PZAtUL z_AjL3F!;`Tq;W zk(QLY+>wiZBPXXXa!OHPv3M-j=9g4Gd&{yxT{~<1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