fleet/website/api
Eric 3e1936d9c7
Website: add <rituals> component, add ritualsTables (parsed from YAML) to website configuration (#13084)
Changes:
- Updated the `build-static-content` script to parse files named
`rituals.yml` in the handbook folder, and add the contents to the
website's configuration as
`sails.config.builtStaticContent.ritualsTables`, and to throw errors if
a `rituals.yml` file contains a ritual that is missing a required value.
- Created the `<rituals>` component, a component that takes a single
prop (`ritualsTable`) and renders a table containing a row for each
ritual.
- Added a new property to `handbook/company/rituals.yml` - moreInfoUrl.
If this value is present, the description in the rendered HTML table (of
the `<rituals>` component) will link to the URL provided.
- updated view-basic-handbook to send
`sails.config.builtStaticContent.ritualsTables` in `SAILS_LOCALS`

---------

Co-authored-by: Sampfluger88 <108141731+Sampfluger88@users.noreply.github.com>
2023-08-03 21:58:02 -05:00
..
controllers Website: add <rituals> component, add ritualsTables (parsed from YAML) to website configuration (#13084) 2023-08-03 21:58:02 -05:00
helpers Request review automatically for non-codeowners (#12786) 2023-07-15 19:56:30 -05:00
hooks/custom Website: Add override sails.LOOKS_LIKE_ASSET_RX value (#11021) 2023-04-12 11:10:46 -05:00
models Website: add Fleet Sandbox waitlist (#13028) 2023-07-28 18:56:54 -05:00
policies Website: Add admin tool for generating Fleet Premium licenses. (#8478) 2022-12-05 14:53:16 -06:00
responses Website: Fleet Sandbox (#6380) 2022-08-12 17:31:01 -05:00