The Daml Finance documentation is hosted in the
docs.daml.com repository. However, the code
documentation and relevant code snippets are built in this repository and shipped to the rest of
the docs via an assembly
artifact.
-
Navigate to the root folder of the repository.
-
make build-all
to build the Daml Financedar
s. -
make ci-docs
to build therst
documentation of the code.
In order to update the assembly package used on the main documentation website at docs.daml.com, we need to execute the following steps:
- Update the
version
in daml.yaml. Merge this new version into main. - Create a branch beginning with
assembly
orAssembly
. This must be an empty branch without any commits in it. Otherwise, the assembly tag will be incorrect. You can create a remote branch in the GitHub GUI. - Log into CircleCi and navigate to the Daml-Finance pipeline.
- Navigate to the branch that you created in step 2 with the CircleCi workflow
assembly
. - Once CircleCI has successfully built both
build
anddocs
steps, an approval step namedhold
will be enabled - select the step and pressApprove
. - The next step named
assembly
will start processing. This step:- Runs the script
docs/scripts/build-assembly.sh
which:- Takes the build output at
docs/build/daml-finance-rst
and thesrc
directory and places it into a folder atdocs/.assembly
with the expected directory structure. - Updates the directory paths.
- Takes the build output at
- Creates a tarball file.
- Uploads this tarball to Artifactory (Note - if the target Daml SDK version already exists for Daml-Finance, this step will fail with a 403 http error code).
- Runs the script
- In the docs.daml.com repo, follow the
instructions in the README
to update the
daml-finance
version.