This provides an option to override the functionality provided by the theme, or apply `text-transform` outside of the theme. The functionality of the `text-transform` is as below: - `text-transform: none` - will disable **any** transformation (like the uppercasing by `terminal` theme) - `text-transform: uppercase` (uppercase not upper as per your message) - will force all characters into uppercase. - `text-transform: lowercase` - will force all characters into lowercase. - `text-transform: capitalize` - will uppercase the first letter of every word In addition, this commit introduces: - helper methods on the `d2graph.Style` struct to determine the type of `text-transform` to be applied. - `ApplyTextTransform` method on the `d2graph.Attributes` which will transform the `Label.Value` to the correct text case. |
||
|---|---|---|
| .. | ||
| aws | ||
| build | ||
| changelogs | ||
| docker | ||
| linux | ||
| template | ||
| windows | ||
| _build.sh | ||
| _install.sh | ||
| build.sh | ||
| build_in_docker.sh | ||
| gen_install.sh | ||
| gen_template_lib.sh | ||
| README.md | ||
| release.sh | ||
release
_install.sh
The template for the install script in the root of the d2 repository.
gen_install.sh
Generates the install.sh script in the root of the repository by prepending the libraries it depends on from ../sub/lib.
release.sh
- ./release.sh is the top level script to generate a new release. Run with --help for usage.
build.sh
- ./build.sh builds the release archives for each platform into ./build//*.tar.gz Run with --help for usage.
note: Remember for production releases you need to set the $TSTRUCT_OS_ARCH_BUILDER variables as we must compile d2 directly on each release target to include dagre. See https://github.com/terrastruct/d2/issues/31
Use --host-only to build only the release for the host's $OS-$ARCH pair.
build_docker.sh
Helper script called by build.sh to build D2 on each linux runner inside Docker. The Dockerfile is in ./linux/Dockerfile
_build.sh
Called by build.sh (with --local or macOS) or build_docker.sh (on linux) to create the release archive.
Do not invoke directly. If you want to produce a build for a single platform run build.sh as so:
# To only build the linux-amd64 release.
./build.sh --run=linux-amd64
# To only build the linux-amd64 release locally.
./build.sh --local --run=linux-amd64