3 Commits

Author SHA1 Message Date
Kimberley Mackenzie
e35e01f06f
Prettier Spike (#1517)
* Add Prettier set-up (no formatting in this commit).

* Manual fixes for Prettier issues.

* Run Prettier fix on non-markdown files.

* Incorporate Prettier PR feedback - update commands, re-apply new yaml styles, add editor config.

* Remove deprecated config item.

* Add dependency on prettier-plugin-go-template.

* reconcile changed file with prettier formatting.

* Add git blame ignore revs file to include Prettier formatting commit.

* Fix format issue with merge conflict.
2022-06-01 10:58:20 -07:00
Zack Chase
3e054d0ea3 Add event tracking to link clicks (#2199)
* Add link linter script

* Add build commands for linting links

* Add linting to start of serve script

* Add tracking ids to links

* Add tracking id to links

* Finish adding tracking ids to remaining html links

* Add front labels to lint results

* Add some checks to function inputs; address feedback

* Add checks that the element exists before sending tracking event

* Add urlize to dynamically created tracking ids

* Switch to generating ids instead of hardcoding

* Do not encode strings when generating link tracking ids

* Convert to use data-track attribute instead of data-tracking-id

* Remove link linter

* Fix duplicate read more tag

* Revert breadcrumb html to be one line to eliminate extra space

* Remove unused package

* Update g suite name convention on tracking id

Co-Authored-By: Christian Nunciato <c@nunciato.org>

Co-authored-by: Christian Nunciato <christian@pulumi.com>
2020-01-15 12:51:13 -08:00
Maria Bermudez
d058a12e45 A very crude implementation of the glossary (#1547)
* A very crude implementation of the glossary
No real styling has been applied yet, but the idea is you get a list of all the terms with anchor links to the definition and relevant documentation pages. Have to look into why it's not generating a right TOC for the H2 (my theory is because it is declared in the shortcode file rather than glossary.md?

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

Add sorting

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

Address feedback

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

Escape quotes

* Add initial list of terms
Add anchorize function

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

Remove duplicate entry

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Remove extra spaces

* Add initial list of terms
Add anchorize function

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

Remove duplicate entry

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>

* Remove extra spaces

* Use 3 columns and other cleanup

- 3 columns for term index
- Use shortcode instead of `if` check in `single.html` layout
- Minor cleanup

* Address feedback

Signed-off-by: bermudezmt <bermudez.mt@gmail.com>
2019-09-09 13:56:35 -07:00