From 673c7f8d0f8e53b592b7ae89bb0376ba9e450544 Mon Sep 17 00:00:00 2001 From: Armel Soro Date: Thu, 2 Feb 2023 12:17:15 +0100 Subject: [PATCH 1/3] Add 'devfile.yaml' for working on the website --- docs/website/devfile.yaml | 59 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 docs/website/devfile.yaml diff --git a/docs/website/devfile.yaml b/docs/website/devfile.yaml new file mode 100644 index 00000000000..f74614ea25f --- /dev/null +++ b/docs/website/devfile.yaml @@ -0,0 +1,59 @@ +schemaVersion: 2.2.0 +metadata: + name: odo.dev + description: Website for odo, the developer-focused CLI for container development + displayName: odo.dev + icon: https://odo.dev/img/logo.png + version: 3.6.0 + tags: + - NodeJS + - React + - Docusaurus + - odo + +components: +- name: doc-runtime + container: + image: registry.access.redhat.com/ubi8/nodejs-16:latest + memoryLimit: 512Mi + command: ['tail'] + args: ['-f', '/dev/null'] + endpoints: + - name: http-doc + targetPort: 3000 + +commands: + +- id: 0-install-yarn + exec: + commandLine: npm install --global yarn + component: doc-runtime + +# +# Build +# +- id: doc-install-deps + exec: + commandLine: yarn + component: doc-runtime + workingDir: ${PROJECT_SOURCE} + group: + kind: build + isDefault: true + +# +# Run +# +- id: doc-start + exec: + commandLine: yarn start + component: doc-runtime + hotReloadCapable: true + workingDir: ${PROJECT_SOURCE} + group: + kind: run + isDefault: true + +events: + postStart: + - 0-install-yarn \ No newline at end of file From 1dc9884193f7aa699be8c8004a84da4fca5e6666 Mon Sep 17 00:00:00 2001 From: Armel Soro Date: Thu, 2 Feb 2023 12:17:37 +0100 Subject: [PATCH 2/3] Git-ignore the '.odo' folder --- docs/website/.gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/website/.gitignore b/docs/website/.gitignore index 454d3a83b95..5090da6ec95 100644 --- a/docs/website/.gitignore +++ b/docs/website/.gitignore @@ -19,3 +19,5 @@ npm-debug.log* yarn-debug.log* yarn-error.log* + +.odo \ No newline at end of file From 3da82397a9d7772db72f27e9336eefc74d6614d1 Mon Sep 17 00:00:00 2001 From: Armel Soro Date: Thu, 2 Feb 2023 12:19:46 +0100 Subject: [PATCH 3/3] Make Docusaurus listen on all interfaces By default, Docusaurus would listen only on the loopback interface, which does not work with Podman at this time (see [1]). [1] https://github.com/redhat-developer/odo/issues/6510#issuecomment-1400280994 --- docs/website/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/website/package.json b/docs/website/package.json index 87869d21301..f2f91654dcb 100644 --- a/docs/website/package.json +++ b/docs/website/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "docusaurus": "docusaurus", - "start": "docusaurus start", + "start": "docusaurus start --host 0.0.0.0", "build": "docusaurus build && ./build_godoc.sh", "swizzle": "docusaurus swizzle", "deploy": "docusaurus deploy",