forked from salesforce-ux/design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(release): Refactor release script (#5234)
* fix python errors in release schript * skip site validation unless Applitools API key is present * modify search config to include kinetics section and component blueprint pages * add a README for search * update index_name in search config * more searchconfig edits * update index name * revert back to use localhost * adjust existing dist prompt * fix invalid json in searchconfig * refactor search config and release script to use docker * add explicit check for make-index flag to opt-in to making site search index * display error message if .algoliakeys.json is missing * Update README-search.md
- Loading branch information
1 parent
99d5420
commit 4b8f090
Showing
3 changed files
with
121 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Salesforce Lightning Design System | ||
|
||
Welcome to the [Salesforce Lightning Design System](https://www.lightningdesignsystem.com) brought to you by [Salesforce UX](https://twitter.com/salesforceux). | ||
|
||
* Tailored for building Salesforce apps: Using the Lightning Design System markup and CSS framework results in UIs that reflect the Salesforce Lightning look and feel. | ||
* Continuously updated: As long as you’re using the latest version of the Lightning Design System, your pages are always up to date with Salesforce UI changes. | ||
|
||
## Search | ||
|
||
Handled by Algolia. | ||
This process decribes indexing as a standalone process. Search indexing can also be done at time of site build by passing `--make-index` to the script: `sh ./release.sh --make-index` | ||
|
||
To crawl and update the index, use the [Docker method](https://docsearch.algolia.com/docs/legacy/run-your-own/#run-the-crawl-from-the-docker-image). | ||
|
||
First, create the `.env` file.: | ||
``` | ||
echo APPLICATION_ID=XXXXXX >> .env | ||
echo API_KEY=0123456789 >> .env | ||
``` | ||
Access the Algolia account, or ask someone who has access, to get the correct values. | ||
|
||
Then install Docker Desktop as described [here](https://stackoverflow.com/a/44719239/390866): | ||
`brew install --cask docker` | ||
|
||
Then launch the Docker app. Click next. It will ask for privileged access. Confirm. A whale icon should appear in the top bar. Click it, and wait for "Docker is running" to appear. | ||
|
||
Then in terminal in the `design-system-internal` directory: | ||
|
||
`docker run -it --env-file=.env -e "CONFIG=$(cat ./searchconfig.json | jq -r tostring)" algolia/docsearch-scraper` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters