From 2382cd7508ab72694952a23beae73a1da63dde8f Mon Sep 17 00:00:00 2001 From: Denys Dovhan Date: Tue, 5 Jul 2022 22:05:22 +0300 Subject: [PATCH] refactor(website): Fix path to website folder --- .github/workflows/release.yaml | 3 +-- .github/workflows/website-deoploy.yml | 2 +- .prettierrc.json | 2 +- CONTRIBUTING.md | 6 +++++- package.json | 2 +- website/docusaurus.config.js | 2 +- 6 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b782dd50..d56088ad 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -28,9 +28,8 @@ jobs: - name: 📦 Install Packages run: yarn install --frozen-lockfile - # FIXME: Build all package after publishing to npm - name: ⚙️ Build Packages - run: yarn workspace @autoviews/core build + run: yarn build - name: 👤 Setup Identity run: | diff --git a/.github/workflows/website-deoploy.yml b/.github/workflows/website-deoploy.yml index 12499121..4574f017 100644 --- a/.github/workflows/website-deoploy.yml +++ b/.github/workflows/website-deoploy.yml @@ -2,7 +2,7 @@ name: Website Deploy defaults: run: - working-directory: packages/website + working-directory: website on: push: diff --git a/.prettierrc.json b/.prettierrc.json index 29583843..e323ef71 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -14,7 +14,7 @@ } }, { - "files": "*.md", + "files": "website/**/*.md", "options": { "parser": "mdx" } diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e6735f32..87ad3296 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -54,7 +54,11 @@ Write tests and add new functionality. To start development server in for docs, run: ```sh -yarn workspace @autoviews/website start +# Go to website folder +cd website + +# Start development server +yarn start ``` Note: the website is dependent on the core package and requires a build of the diff --git a/package.json b/package.json index 7152d882..c0a3eccc 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ "build": "lerna run build --stream --parallel", "test": "lerna run test --stream --parallel", "clear": "lerna run clear --stream --parallel", - "release": "lerna publish -y", "lint": "lerna run lint --stream --parallel", + "release": "lerna publish -y", "format": "prettier --write --ignore-path .gitignore ." }, "devDependencies": { diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 1aadd9a4..1621bc2d 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -25,7 +25,7 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula'); sidebarPath: require.resolve('./sidebars.js'), // Please change this to your repo. editUrl: - 'https://github.com/wix-incubator/autoviews/tree/master/packages/website' + 'https://github.com/wix-incubator/autoviews/tree/master/website' }, // blog: { // showReadingTime: true,