Commit Graph

11 Commits (bccaafe640c1d3d212b0dfc94459dca4df64e239)

Author SHA1 Message Date
Harold Cheng 638cd92532
fix: eliminate extra lines when copying to clipboard 2023-03-22 23:28:34 +08:00
Tim Bannister d3708001d8
Use previous release examples in codenew shortcode
Fix a minor bug in the codenew shortcode.
When serving a previous release, link to the example for that specific
release (and not to the example for the current release).
2022-04-25 14:27:28 +01:00
Tim Bannister da31234d5d Update docs for primary branch rename to "main" 2021-06-19 01:50:25 +01:00
Karen Bradshaw 245f989b2a fix copy clipboard 2020-09-18 13:12:46 -04:00
Karen Bradshaw 88856e6c01 modify layout of codenew shortcode 2020-08-11 09:58:12 -04:00
Flo 91759dcd79
Fix cursor not being correct on copy icon (#18901) 2020-02-27 07:53:27 -08:00
Bjørn Erik Pedersen b51bdc88cc Make it compatible with Hugo 0.55 (#13680)
This commit adds two backwards compatible changes to prepare for the next Hugo version, most notable:

* All the `File` methods on `Page` has been deprecated and will give a warning in the next Hugo version. Adjust this by changing `.Dir` to ´.File.Dir` and similar.
* Version the capture shortcode to use the old behaviour for markdown rendering of shortcode inner content.
2019-04-08 18:19:05 -07:00
Dani Comnea 9054d61419 Fix the codenew shortcode where site.Params.githubWebRow is null (#12743) 2019-02-20 17:00:48 -08:00
Luc Perkins c6dd35ba51 Update to Hugo 0.53 and remove all .Site references (#12079)
* Remove all .Site variable references

* Update Hugo version in Travis CI config and Makefile
2019-02-05 08:33:23 -08:00
Qiming a3415f6228 Consolidate YAML files [part-2] (#9236)
Changes that will help upcoming consolidation work:

- Add variable `githubWebsiteRaw` to config.toml to facilitate building
  links to raw YAML files
- Revise `codenew` shortcode to generate links to raw YAML files instead
  of github.com file view;
- Rename `artifacts` directory to `examples` to better reflect its usage;

Accompanied changes as show cases:

- Moved `deployment.yaml`, `deployment-update.yaml` and
  `deployment-scale.yaml` to the new `examples/application` subdirectory;
- Removed duplicate instances of the above YAML files in other
  directories;
- Update example_test.go to test the relocated YAML files and removed
  testing for files that no longer needed.
2018-06-26 09:34:52 -07:00
Qiming 99c4c54cb5 [WIP] Attempt to consolidate YAML files (#8965)
This is an attempt to consolidate YAML files so that:

- They can remain untouched when we moving the documents around;
- Contributors do not have to change the test cases each time a
  documentation is moved;
- We can encourage referencing the existing YAMLs from different
  concept or task pages when possible.
2018-06-25 12:25:21 -07:00