-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Version 1.20.0 ### Changes - Added the `vertical` custom command. This command allows the user to quickly spin up a page for a particular vertical. Some of the page's configuration, such as `verticalKey` and `cardType` is pre-populated. (#588) - A new page template was added: `vertical-full-page-map`. This template creates a Locator-style page. On Desktop, there is a full page map with a list of results overlaid on top. Clicking a pin on the map highlights the corresponding result in the list. On Mobile, users can toggle between a full-screen map or list view. - A new formatter,`highlightField`, was created. The formatter takes in a string and indices of the substrings to highlight. These substrings are then wrapped in `<mark>` tags. (#582) - The `documentsearch-standard` card was added. This card supports the new `FEATURED_SNIPPET` type direct answers. (#584) - A new universal section template was added: `grid-four-columns`. This layout, as the name suggests, organizes the results into a grid of four columns. (#622, #653) ### Bug Fixes - Out of date or vulnerable dependencies were updated. (#667) - Missing null checks for CTA label were added for the accordion-type cards. (#619) - A custom footer is now hidden when collapsible filters are active. Previously, only the built-in Theme footer would be hidden. (#630)
- Loading branch information
Showing
208 changed files
with
13,864 additions
and
859 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 @@ | ||
*.json linguist-language=JSON-with-Comments |
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,74 @@ | ||
# Answers Hitchhiker Theme | ||
|
||
A [Jambo](https://github.com/yext/jambo) theme for building Answers experiences. | ||
|
||
Additonal resources for integrating Answers can be found at https://hitchhikers.yext.com/. | ||
|
||
Need help? Ask a question in the [Hitchhiker's Community](https://hitchhikers.yext.com/community/c/answers). | ||
|
||
## Getting Started | ||
|
||
### Prerequisites | ||
- Jambo, a static site generator, which can be installed with `npm i jambo` | ||
- An Answers experience configured at https://yext.com. This will provide the `experienceKey` and the `apiKey` | ||
|
||
### Creating an Answers site | ||
|
||
Inside a new directory, initialize jambo with the theme: | ||
```bash | ||
npx jambo init --theme answers-hitchhiker-theme | ||
``` | ||
|
||
Add a universal search page: | ||
```bash | ||
npx jambo page --name index --template universal-standard | ||
``` | ||
|
||
Inside config/global_config.json, delete the "//" before "apiKey" and enter your `apiKey`. Do the same for the `experienceKey` inside config/locale_config.json. | ||
You can find examples inside test-site/config. | ||
|
||
Build the site: | ||
```bash | ||
npx jambo build && grunt webpack | ||
``` | ||
|
||
Finally, serve the site: | ||
```bash | ||
npx serve public | ||
``` | ||
|
||
The site should now be available at http://localhost:5000. | ||
|
||
## Custom Jambo Commands | ||
|
||
This theme makes the following commands available when Jambo imports this theme. | ||
|
||
### Vertical Command | ||
Creates a vertical page of an Answers experience. | ||
|
||
Example usage: | ||
```bash | ||
npx jambo vertical --name Locations --verticalKey locations --template vertical-standard | ||
``` | ||
|
||
See `jambo vertical --help` for more info. | ||
|
||
### Card Command | ||
Creates a new, custom card based on an existing card. | ||
|
||
Example usage: | ||
```bash | ||
npx jambo card --name custom-location --templateCardFolder cards/location-standard | ||
``` | ||
|
||
See `jambo card --help` for more info. | ||
|
||
### Direct Answer Card | ||
Creates a new, custom direct answer card. | ||
|
||
Example usage: | ||
```bash | ||
npx jambo directanswercard --name custom-directanswer --templateCardFolder directanswercards/allfields-standard | ||
``` | ||
|
||
See `jambo directanswercard --help` for more info. |
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
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
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
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
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
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
Oops, something went wrong.