diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fa20ef7..afcca2b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -36,7 +36,7 @@ This one is pretty straightforward. If you’re not a designated collaborator on ## 3. Prepare your local environment -Start by cloning the forked repository, then create a new branch off of `master`. Check out that new branch, then hop over to your favorite terminal. At the root of the repository, run `yarn install --frozen-lockfile` to install dependencies. +Start by cloning the forked repository, then create a new branch off of `master`. Check out that new branch, then hop over to your favorite terminal. At the root of the repository, run `yarn dev` to prepare the repository for local development. _Note: good branch names are usually succinct phrases that describe the change. So, for example, if a change fixes a typo in the README file, the branch name might read `fix-typo-in-readme`._ diff --git a/package.json b/package.json index 87c2031..7428e44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "w3c-css-validator", - "version": "1.0.2", + "version": "1.0.3", "description": "Easily validate CSS using W3C's public CSS validator service", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -8,6 +8,7 @@ "dist/" ], "scripts": { + "dev": "yarn install --frozen-lockfile && yarn compile && yarn --cwd ./website install --frozen-lockfile", "test": "yarn compile && for directory in ./tests/*/ ; do (yarn --cwd \"$directory\" test); done", "lint": "eslint --config ./eslint.src.json --ext .js,.ts ./src && eslint --config ./eslint.tests.json --ext .js,.ts ./tests && eslint --config ./eslint.website.json --ext .js,.ts,.jsx,.tsx ./website && prettier --check '**/*.{ts,js,tsx,jsx,json,css,html,yml}'", "format": "eslint --config ./eslint.src.json --fix --ext .js,.ts ./src && eslint --config ./eslint.tests.json --fix --ext .js,.ts ./tests && eslint --config ./eslint.website.json --fix --ext .js,.ts,.jsx,.tsx ./website && prettier --write '**/*.{ts,js,tsx,jsx,json,css,html,yml}'", diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 821bd84..56de30d 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -2,7 +2,7 @@ module.exports = { title: 'W3C CSS Validator', tagline: 'Modern CSS validation in JS environments using W3C’s public API', url: 'https://sparksuite.github.io/w3c-css-validator/', - baseUrl: '/', + baseUrl: '/w3c-css-validator/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', favicon: 'img/favicon.ico',