Browser extension for authoring Franklin projects
Note: The Sidekick extension and bookmarklet share the same Sidekick module.
Navigate to https://www.hlx.live/tools/sidekick/ and follow the instructions there.
- Go to the Chrome Web Store
- Click Add to Chrome
- Confirm by clicking Add extension
- Click the extensions icon next to Chrome's address bar to see a list of all extensions:

- Verify that there's an icon like this:

- Click the pin button next to it to make sure it always stays visible.
- Click the extension's icon and select Options:

On this page, you can add projects by either pasting a share URL* or a GitHub URL in the respective fields and clicking Add. This page will also allow you to view, edit and delete existing projects.- Alternatively, you can also navigate to a share URL* or a GitHub project, click the extension's icon and select Add project.
- Navigate to your project's homepage and click on the extension's icon to toggle the Sidekick.
* Share URLs start with https://www.hlx.live/tools/sidekick/...
Refer to the Sidekick documentation to learn more about its features.
$ npm install
$ npm run build$ npm test$ npm run lintEvery development branch in this repository will be mirrored in https://github.com/adobe/helix-website with a sidekick- prefix to enable enable branch testing:
- Push changes to a branch
issue-77 - Note the
sidekick-issue-77branch in https://github.com/adobe/helix-website/branches - Go to
https://sidekick-issue-77--helix-website--adobe.hlx.page/tools/sidekick/to install a development version of the bookmarklet for your project
Note: Mirrored development branches in https://github.com/adobe/helix-website/branches must be deleted manually when no longer needed.
- Run
npm starton your local checkout of this repository - Go to `http://localhost:3001/ and follow the instructions.
- Run
npm run build:chrome - Open Chrome and navigate to
chrome://extensions - Turn on Developer mode at the top right of the header bar

- Click the Load unpacked button in the action bar

- Navigate to the
dist > chromefolder and click Select to install and activate the Sidekick extension. - Verify that your Extensions page displays a box like this:

- Follow the steps under Adding projects to the extension
If you want to test a config file before deploying it to your project:
- Run
hlx upon your local checkout of the project repository - Add your project to the sidekick extension
- Enable local project configruation:
- Click the extension's icon and select Options
- Click Advanced on the left
- Click Edit on the project configuration you want to test locally
- Tick the Test project configuration locally checkbox
- Click Save
- Navigate to a project URL and activate the sidekick extension
The Sidekick bookmarklet gets staged automatically each time a pull request is merged into main.
- Go to
helix-websitepull requests - Click the Sidekick Release Candidate PR
- Add a comment listing the
helix-sidekickPR(s) included in this release - Get a team member to review the Sidekick RC. The PR is based on a
sidekick-rc-*branch (*being a random ID) so the RC can be tested at:https://sidekick-rc-*--helix-website--adobe.hlx.page/tools/sidekick/ - Once approved, merge the RC PR to deploy the changes into production
The Chrome extension is built and uploaded automatically each time a pull request is merged into main and, once reviewed by Google, auto-published and pushed to users' browsers.
The following environment variables are required to be set in the CircleCI project settings: GOOGLE_APP_ID, GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET and GOOGLE_REFRESH_TOKEN. See here for detailed instructions how to obtain and generate them.
If you have to re-deploy manually or make changes to the store page, you can gain access to the Chrome Developer Dashboard by following these instructions:
- Go to the Chrome Developer Dashboard
- Switch to the Adobe Inc. publisher at the top right
- Click the Sidekick item in the extension list
- Switch to Package
- Click Upload new package
- Upload
dist > chrome.zip - Click Submit for review