This website is built using Docusaurus v2. Content is pulled from the microsoft/playwright repo.
npm install
SRC_DIR=../playwright npm run roll
node src/versions.js --delete 1.16
npm run start-nodejs
See package.json
for other languages (java, python, .NET).
npm run build
npm run serve
If you don't already, you might need to set the default shell to bash
.
npm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"
You can revert it later, if you have issues, by doing:
npm config delete script-shell
In some cases, the postinstall
script doesn't auto-run after npm install
, in which case, you can run that manually:
npm run postinstall
That should bring your environment to a state ready for testing.
To roll the docs in PowerShell, make sure you set the env variable correctly, i.e.:
$env:SRC_DIR="C:\Users\user\src\playwright"; npm run roll