We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent3db8a8a commitd97b9edCopy full SHA for d97b9ed
.github/actions/setup-node/action.yaml
@@ -13,4 +13,5 @@ runs:
13
cache-dependency-path:"site/yarn.lock"
14
-name:Install node_modules
15
shell:bash
16
-run:./scripts/yarn_install.sh
+run:../scripts/yarn_install.sh
17
+working-directory:site
.github/workflows/release.yaml
@@ -259,6 +259,11 @@ jobs:
259
env:
260
CODER_BASE_IMAGE_TAG:${{ steps.image-base-tag.outputs.tag }}
261
262
+ -name:Generate offline docs
263
+run:|
264
+ version="$(./scripts/version.sh)"
265
+ make -j build/coder_docs_"$version".tgz
266
+
267
-name:ls build
268
run:ls -lh build
269
.prettierrc.yaml
@@ -4,6 +4,8 @@
4
printWidth:80
5
semi:false
6
trailingComma:all
7
+useTabs:false
8
+tabWidth:2
9
overrides:
10
-files:
11
-README.md
Makefile
@@ -356,10 +356,18 @@ build/coder_helm_$(VERSION).tgz:
356
--output"$@"
357
358
site/out/index.html: site/package.json$(shell find ./site$(FIND_EXCLUSIONS) -type f \( -name '*.ts' -o -name '*.tsx' \))
359
-./scripts/yarn_install.sh
360
cd site
+../scripts/yarn_install.sh
361
yarn build
362
363
+offlinedocs/out/index.html:$(shell find ./offlinedocs$(FIND_EXCLUSIONS) -type f)$(shell find ./docs$(FIND_EXCLUSIONS) -type f | sed 's: :\\ :g')
364
+cd offlinedocs
365
366
+yarnexport
367
368
+build/coder_docs_$(VERSION).tgz: offlinedocs/out/index.html
369
+tar -czf"$@" -C offlinedocs/out.
370
371
install: build/coder_$(VERSION)_$(GOOS)_$(GOARCH)$(GOOS_BIN_EXT)
372
install_dir="$$(go env GOPATH)/bin"
373
output_file="$${install_dir}/coder$(GOOS_BIN_EXT)"
offlinedocs/.eslintrc.json
@@ -0,0 +1,3 @@
1
+{
2
+"extends":"next/core-web-vitals"
3
+}
offlinedocs/.gitignore
@@ -0,0 +1,38 @@
+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
+# dependencies
+/node_modules
+/.pnp
+.pnp.js
+# testing
+/coverage
+# next.js
12
+/.next/
+/out/
+# production
+/build
18
+# misc
19
+.DS_Store
20
+*.pem
21
22
+# debug
23
+npm-debug.log*
24
+yarn-debug.log*
25
+yarn-error.log*
26
+.pnpm-debug.log*
27
28
+# local env files
29
+.env*.local
30
31
+# vercel
32
+.vercel
33
34
+# typescript
35
+*.tsbuildinfo
36
37
+# content
38
+public/images/
offlinedocs/next-env.d.ts
@@ -0,0 +1,5 @@
+/// <reference types="next" />
+/// <reference types="next/image-types/global" />
+// NOTE: This file should not be edited
+// see https://nextjs.org/docs/basic-features/typescript for more information.
offlinedocs/next.config.js
@@ -0,0 +1,7 @@
+/**@type {import('next').NextConfig} */
+constnextConfig={
+reactStrictMode:true,
+trailingSlash:true,
+module.exports=nextConfig
offlinedocs/package.json
@@ -0,0 +1,37 @@
+"name":"coder-docs-generator",
+"version":"0.1.0",
+"private":true,
+"scripts": {
+"dev":"yarn copy-images && next dev",
+"build":"next build",
+"start":"next start",
+"export":"yarn copy-images && next build && next export",
+"copy-images":"sh ./scripts/copyImages.sh"
+ },
+"dependencies": {
+"@chakra-ui/react":"2.7.1",
+"@emotion/react":"11",
+"@emotion/styled":"11",
+"archiver":"5.3.1",
+"framer-motion":"6",
+"front-matter":"4.0.2",
+"fs-extra":"10.1.0",
+"lodash":"4.17.21",
+"next":"12.1.6",
+"react":"18.2.0",
+"react-dom":"18.2.0",
+"react-icons":"4.4.0",
+"react-markdown":"8.0.3",
+"rehype-raw":"6.1.1",
+"remark-gfm":"3.0.1"
+"devDependencies": {
+"@types/node":"18.0.0",
+"@types/react":"18.0.14",
+"@types/react-dom":"18.0.5",
+"eslint":"8.17.0",
+"eslint-config-next":"12.1.6",
+"typescript":"4.7.3"
+ }