Skip to content

Commit d169805

Browse files
authored
DOCS-1262 - Add 'yarn clear' to build workflows (#6058)
* Add 'yarn clear' to build workflows * Remove 'yarn build' from readme
1 parent a5bbda9 commit d169805

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/job_build-site.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
run: yarn install --frozen-lockfile
3232
- name: Clean Docusaurus cache
3333
run: rm -rf .docusaurus build
34+
- name: Clear the Docusaurus site
35+
run: |
36+
yarn clear
3437
- name: Build the Docusaurus site
3538
run: |
3639
yarn build

.github/workflows/pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
key: ${{ runner.os }}-webpack-cache-${{ hashFiles('yarn.lock') }}
3535
- name: Install dependencies
3636
run: yarn install --frozen-lockfile
37+
- name: Clear the Docusaurus site
38+
run: |
39+
yarn clear
3740
- name: Build the Docusaurus site
3841
run: yarn build
3942
# --- Disallowed character checks for Pantheon ---

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,13 @@ All contributions must follow our [Style Guide](https://www.sumologic.com/help/d
6868

6969
Building the site locally ensures your changes are accurate and functional before submission.
7070

71-
1. Serve and preview your content with hot reloads:
71+
Serve and preview your content with hot reloads:
7272
```bash
7373
yarn start
7474
```
7575
Any issues, such as broken links or images, will be listed. Fix them, rebuild, and verify your changes.
7676

77-
2. Build the site and test locally:
78-
```bash
79-
yarn build
80-
```
81-
The static files will be generated in the `build` folder and served at `http://localhost:3000/`.
82-
83-
To stop the local server or build process, press `Ctrl + C`. You can rebuild and restart as needed.
77+
To stop the local server process, press `Ctrl + C`. You can restart as needed.
8478

8579
## Publishing content
8680

0 commit comments

Comments
 (0)