Skip to content

Commit a6b9728

Browse files
committed
PDF Doc Generation W-18185062
Removing python install from .readthedocs.yml Fixing doc broken references Fixing broken references in documentation and removing unicode emojis from doc gen Applying recommended PR changes
1 parent a0494b8 commit a6b9728

24 files changed

Lines changed: 259 additions & 227 deletions

.github/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ changelog:
77
authors:
88
- app/github-actions
99
categories:
10-
- title: Critical Changes 🛠
10+
- title: Critical Changes
1111
labels:
1212
- critical-change
13-
- title: Changes 🎉
13+
- title: Changes
1414
labels:
1515
- enhancement
1616
- "*"
1717
exclude:
1818
labels:
1919
- bug
20-
- title: Issues Fixed 🩴
20+
- title: Issues Fixed
2121
labels:
2222
- bug

.readthedocs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ sphinx:
2727
formats:
2828
- pdf
2929
- epub
30+
# Optionally declare the Python requirements required to build your docs
31+
# python:
32+
# install:
33+
# - requirements: requirements_dev.txt

docs/about.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
```{toctree}
44
:maxdepth: 1
55
6-
history
76
contributing
8-
```
7+
history
8+
```

docs/conf.py

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@
100100
# directories to ignore when looking for source files.
101101
exclude_patterns = ["_build", "*/tests/"]
102102

103+
# Exclude 'history.md' only in LaTeX builds
104+
if os.environ.get("SPHINX_OUTPUT_FORMAT") == "latex":
105+
exclude_patterns.append("history.md")
106+
103107
# The reST default role (used for this markup: `text`) to use for all
104108
# documents.
105109
# default_role = None
@@ -222,21 +226,22 @@
222226
# This is the file name suffix for HTML files (e.g. ".xhtml").
223227
# html_file_suffix = None
224228

229+
suppress_warnings = ["ref.duplicate_label"]
230+
225231
# Output file base name for HTML help builder.
226232
htmlhelp_basename = "cumuluscidoc"
227233

228234

229235
# -- Options for LaTeX output ------------------------------------------
236+
latex_engine = "xelatex"
237+
230238

231239
latex_elements = {
232-
# The paper size ('letterpaper' or 'a4paper').
233-
# 'papersize': 'letterpaper',
234-
# The font size ('10pt', '11pt' or '12pt').
235-
# 'pointsize': '10pt',
236-
# Additional stuff for the LaTeX preamble.
237-
# 'preamble': '',
240+
'preamble': r'''\renewcommand{\familydefault}{\sfdefault} % Set default font to sans-serif
241+
''',
238242
}
239243

244+
240245
# Grouping the document tree into LaTeX files. List of tuples
241246
# (source start file, target name, title, author, documentclass
242247
# [howto/manual]).
@@ -245,13 +250,16 @@
245250
"index",
246251
"cumulusci.tex",
247252
"CumulusCI Documentation",
248-
"""Kamalnath Devarakonda\\\\
249-
Sr Director Software Engineering\\\\
250-
kdevarakonda@salesforce.com""",
253+
r"""
254+
\parbox{\textwidth}{\raggedleft
255+
{\fontsize{15}{12} Kamalnath Devarakonda}\\
256+
{\fontsize{14}{12}\selectfont Sr. Director, Software Engineering}\\
257+
{\fontsize{13}{12}\selectfont kdevarakonda@salesforce.com}
258+
}
259+
""",
251260
"manual",
252261
)
253262
]
254-
255263
# The name of an image file (relative to this directory) to place at
256264
# the top of the title page.
257265
# latex_logo = None

docs/config.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Options
8686
Require at least X percent code coverage across the org following the test run.
8787
Default: 90
8888
```
89-
89+
(add-a-custom-task)=
9090
### Add a Custom Task
9191

9292
To define a new task for your project, add the task name under the
@@ -534,7 +534,7 @@ will fetch the most recent production release, or the default branch if
534534
there are no releases. By specifying `resolution_strategy`, the behavior
535535
can be changed to match desired dependency resolution behavior, such as
536536
using beta releases or retrieving feature test packages from a commit
537-
status. See [](dependency-resolution) for
537+
status. See [](controlling-github-dependency-resolution) for
538538
more details about resolution strategies.
539539

540540
```{note}
@@ -723,7 +723,7 @@ in your cumulusci.yml file.
723723

724724
### Customizing Metadata Deployment
725725

726-
CumulusCI's `deploy` task offers deep flexibility to customize your deployment process. Review [](deploy) for an in-depth guide.
726+
CumulusCI's `deploy` task offers deep flexibility to customize your deployment process. Review [](configure-metadata-deployment) for an in-depth guide.
727727

728728
```{toctree}
729729
---

docs/connected-orgs.md

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -65,26 +65,22 @@ CumulusCI with the name `devhub`.
6565

6666
```console
6767
$ cci org list
68+
Scratch Orgs
69+
70+
Default Name Days Expired Config Domain
71+
─────────────────────────────────────────────────────────────
72+
beta 1 beta
73+
dev 7 ✔ dev
74+
feature 1 feature
75+
qa 7 ✔ qa
76+
release 1 release
77+
78+
Connected Orgs
79+
80+
Default Name Username Expires
81+
───────────────────────────────────────────────────────────────────────────────────────
82+
devhub j.holt@mydomain.devhub Persistent
6883

69-
┌Scratch Orgs──────────────┬─────────┬──────┬─────────┬──────────────┬────────┐
70-
│ Name │ Default │ Days │ Expired │ Config │ Domain │
71-
├──────────────────────────┼─────────┼──────┼─────────┼──────────────┼────────┤
72-
│ dev │ │ 7 │ X | dev │ │
73-
├──────────────────────────┼─────────┼──────┼─────────┼──────────────┼────────┤
74-
│ feature │ │ 1 │ X | feature │ │
75-
├──────────────────────────┼─────────┼──────┼─────────┼──────────────┼────────┤
76-
│ prerelease │ │ 1 │ X | prerelease │ │
77-
├──────────────────────────┼─────────┼──────┼─────────┼──────────────┼────────┤
78-
│ qa │ │ 7 │ X | qa │ │
79-
├──────────────────────────┼─────────┼──────┼─────────┼──────────────┼────────┤
80-
│ release │ │ 1 │ X | release │ │
81-
└──────────────────────────┴─────────┴──────┴─────────┴──────────────┴────────┘
82-
83-
┌Connected Orgs────┬──────────────────────────────┬────────────┐
84-
│ Name │ Default │ Username │ Expires │
85-
├────────┼─────────┼──────────────────────────────┼────────────┤
86-
│ devhub │ │ j.holt@mydomain.devhub │ Persistent │
87-
└────────┴─────────┴──────────────────────────────┴────────────┘
8884
```
8985

9086
Verify a successful connection to the org by logging in.

docs/continuous-integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ variables to provide access to orgs and services [in a headless context](headles
5050

5151
CumulusCI makes it easy to harness the power of second-generation
5252
managed packages to implement an advanced, comprehensive testing process
53-
for both first- and second-generation managed package products. This is
53+
for both first-generation and second-generation managed package products. This is
5454
described in [](2gp-testing).
5555

5656
## Further Reading

docs/cumulusci-flow.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ child branches. This means that despite
295295
`feature/large-feature__section1` having two child branches, they would
296296
not receive automerges until the parent branch tests successfully.
297297

298+
(release-to-future-release-merges)=
298299
### Release to (Future) Release Merges
299300

300301
Because release branches are so long-lived, and so much work goes into

docs/data.md

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ For example, the 'dev' dataset is for 'dev' orgs, and it is used
2626
instead of the default dataset if it exists.
2727

2828
You can create a dataset by extracting data from an existing org
29-
or by authoring a [Snowfakery recipe](Generate-Fake-Data).
29+
or by authoring a [Snowfakery recipe](#generate-fake-data).
3030
Extracting from an existing org is easy for use-cases where the
3131
data already exists or can be readily created in an org. Snowfakery
3232
is better for cases where either a) you would like to dynamically
@@ -37,14 +37,14 @@ A Snowfakery dataset can consist of a single file with a name like
3737
`datasets/<datasetname>/<datasetname>.recipe.yml` . For example,
3838
`datasets/default/default.recipe.yml` or
3939
`datasets/qa/qa.recipe.yml`. The rest of what you need to know
40-
about Snowfakery is in the section [Generate Fake Data](Generate-Fake-Data).
40+
about Snowfakery is in the section [Generate Fake Data](#generate-fake-data).
4141

4242
### Extracting and Loading Sample Datasets
4343

4444
In the simplest case, you can extract all data from an org
4545
using the task `capture_sample_data` like this:
4646

47-
```s
47+
```console
4848
$ cci task run capture_sample_data --org orgname
4949
```
5050

@@ -54,7 +54,7 @@ org named `orgname` into the dataset named `default`.
5454
You can then load it into any target org (e.g.
5555
`org2`) like this:
5656

57-
```s
57+
```console
5858
$ cci task run load_sample_data --org org2
5959
```
6060

@@ -88,11 +88,11 @@ If you want different datasets for different scratch org types
8888
loaded by those types by making datasets specific to each one.
8989
This data will load instead of the default dataset.
9090

91-
```s
91+
```console
9292
$ cci task run capture_sample_data --dataset dev --org org1
9393
```
9494

95-
```s
95+
```console
9696
$ cci task run capture_sample_data --dataset qa --org org2
9797
```
9898

@@ -816,11 +816,13 @@ Extract the data for a dataset from an org and persist it to disk.
816816

817817
`mapping` and either `sql_path` or `database_url` must be supplied.
818818

819-
Example: :
820-
821-
cci task run extract_dataset -o mapping datasets/qa/mapping.yml -o sql_path datasets/qa/data.sql --org qa
819+
Example:
820+
```console
821+
cci task run extract_dataset -o mapping datasets/qa/mapping.yml -o sql_path datasets/qa/data.sql --org qa
822+
```
822823

823-
### <a name="data-load-dataset"></a> `load_dataset`
824+
(data-load-dataset)=
825+
### `load_dataset`
824826

825827
Load the data for a dataset into an org. If the storage is a database,
826828
persist new Salesforce Ids to storage.
@@ -840,9 +842,11 @@ persist new Salesforce Ids to storage.
840842

841843
`mapping` and either `sql_path` or `database_url` must be supplied.
842844

843-
Example: :
845+
Example:
844846

845-
cci task run load_dataset -o mapping datasets/qa/mapping.yml -o sql_path datasets/qa/data.sql --org qa
847+
```console
848+
cci task run load_dataset -o mapping datasets/qa/mapping.yml -o sql_path datasets/qa/data.sql --org qa
849+
```
846850

847851
### `generate_dataset_mapping`
848852

@@ -908,9 +912,11 @@ after their target records become available.
908912
- `namespace_prefix`: The namespace prefix to treat as belonging to
909913
the project, if any
910914

911-
Example: :
915+
Example:
912916

913-
cci task run generate_dataset_mapping --org qa -o namespace_prefix my_ns
917+
```console
918+
cci task run generate_dataset_mapping --org qa -o namespace_prefix my_ns
919+
```
914920

915921
### `load_custom_settings`
916922

@@ -994,6 +1000,8 @@ option:
9941000

9951001
You can learn more about Snowfakery syntax in the next section.
9961002

1003+
(Generate-Fake-Data)=
1004+
9971005
## Generate Fake Data
9981006

9991007
It is possible to use CumulusCI to generate arbitrary amounts of

docs/data/extract_declarations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ generated by `capture_sample_data` or by Metecho.
1111

1212
An extract declaration looks like this:
1313

14-
```yml
14+
```yaml
1515
extract:
1616
Opportunity:
1717
fields:
@@ -27,7 +27,7 @@ and Account.
2727

2828
That declaration is therefore the same as:
2929

30-
```yml
30+
```yaml
3131
# This will download the Salesforce-y trinity
3232
# of Accounts, Contacts and Opportunities
3333
extract:

0 commit comments

Comments
 (0)