Skip to content

Commit 51d111f

Browse files
authored
Merge branch 'master' into nsollecito/lang-redirects
2 parents 3a7332e + 6248e39 commit 51d111f

File tree

4,031 files changed

+58702
-140532
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,031 files changed

+58702
-140532
lines changed

.github/ISSUE_TEMPLATE/feature_request.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: Feature request
3-
about: Suggest an idea for the Datadog documentation. To request a product feature, please [file a ticket to Datadog support team directly](https://docs.datadoghq.com/help/).
4-
3+
about: Suggest an idea for the Datadog documentation. To request a product feature, please file a ticket to Datadog's support team directly https://docs.datadoghq.com/help/.
54
---
65

76
**Is your feature request related to a problem? Please describe.**

.gitignore

+10-28
Original file line numberDiff line numberDiff line change
@@ -4,59 +4,41 @@ data/integrations/
44
data/service_checks/
55
integrations_data
66

7-
# Ignoring all integrations file
8-
content/integrations/*.md
9-
!content/integrations/_index.md
10-
!content/integrations/cloudability.md
11-
!content/integrations/cloudcheckr.md
12-
!content/integrations/carbon_black.md
13-
!content/integrations/jenkins.md
14-
!content/integrations/kubernetes.md
15-
!content/integrations/rss.md
16-
!content/integrations/system.md
17-
!content/integrations/tcprtt.md
18-
!content/integrations/adobe_experience_manager.md
19-
!content/integrations/pivotal_platform.md
20-
!content/integrations/alcide.md
21-
!content/integrations/amazon_eks_fargate.md
22-
!content/integrations/iam_access_analyzer.md
23-
247
# Ignoring all automated content
258
# Developers/integrations
26-
content/developers/integrations/*.md
27-
content/agent/basic_agent_usage/heroku.md
9+
content/en/developers/integrations/*.md
10+
content/en/developers/amazon_cloudformation.md
11+
12+
# Agent section
13+
content/en/agent/basic_agent_usage/heroku.md
14+
15+
# Tracing
2816
content/en/tracing/setup/ruby.md
17+
content/en/logs/log_collection/android.md
2918

3019
# Generated by build script
31-
content/integrations/faq/list-of-api-source-attribute-value.md
3220
package-lock.json
3321

34-
# new content subdir version
22+
# Ignoring all integrations file
3523
content/en/integrations/*.md
3624
!content/en/integrations/_index.md
3725
!content/en/integrations/cloudability.md
3826
!content/en/integrations/cloudcheckr.md
39-
!content/en/integrations/jenkins.md
4027
!content/en/integrations/kubernetes.md
4128
!content/en/integrations/rss.md
4229
!content/en/integrations/system.md
4330
!content/en/integrations/tcprtt.md
4431
!content/en/integrations/adobe_experience_manager.md
4532
!content/en/integrations/pivotal_platform.md
4633
!content/en/integrations/alcide.md
47-
!content/en/integrations/amazon_eks_fargate.md
4834
!content/en/integrations/iam_access_analyzer.md
49-
content/en/developers/integrations/*.md
50-
content/en/agent/basic_agent_usage/heroku.md
51-
content/en/integrations/faq/list-of-api-source-attribute-value.md
52-
content/en/developers/amazon_cloudformation.md
35+
!content/en/integrations/kubernetes_audit_logs.md
5336

5437
# Logs
5538
/logs/*
5639
*.log
5740
npm-debug.log*
5841

59-
6042
# Runtime data
6143
pids
6244
*.pid

.gitlab-ci.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ build_preview:
3535
URL: ${PREVIEW_DOMAIN}
3636
CONFIG: ${PREVIEW_CONFIG}
3737
MESSAGE: ":gift_heart: Your preview site is available!\nNow running tests..."
38-
CONFIGURATION_FILE: "./local/etc/pull_config_preview.yaml"
38+
CONFIGURATION_FILE: "./local/bin/py/build/configurations/pull_config_preview.yaml"
39+
LOCAL: "False"
3940
script:
4041
- post_dd_event "documentation deploy ${CI_COMMIT_REF_NAME} started" "${CI_PROJECT_URL}/pipelines/${CI_PIPELINE_ID}" "info"
4142
- version_static_assets
@@ -106,7 +107,8 @@ build_live:
106107
CONFIG: ${LIVE_CONFIG}
107108
URL: ${LIVE_DOMAIN}
108109
UNTRACKED_EXTRAS: "data,content/en/integrations,content/en/agent/basic_agent_usage/heroku.md,content/en/developers/integrations,content/en/developers/amazon_cloudformation.md"
109-
CONFIGURATION_FILE: "./local/etc/pull_config.yaml"
110+
CONFIGURATION_FILE: "./local/bin/py/build/configurations/pull_config.yaml"
111+
LOCAL: "False"
110112
script:
111113
- post_dd_event "documentation deploy ${CI_COMMIT_REF_NAME} started" "${CI_PROJECT_URL}/pipelines/${CI_PIPELINE_ID}" "info"
112114
- notify_slack "<https://github.com/DataDog/documentation/commit/${CI_COMMIT_SHA}|${CI_COMMIT_SHA:0:8}> sent to gitlab for production deployment. <${CI_PROJECT_URL}/pipelines/${CI_PIPELINE_ID}|details>" "#FFD700"

Makefile

+26-23
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,27 @@ include $(CONFIG_FILE)
2121
help:
2222
@perl -nle'print $& if m{^[a-zA-Z_-]+:.*?## .*$$}' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}'
2323

24-
clean: stop ## clean all make installs.
24+
clean: stop ## Clean all make installs.
2525
@echo "cleaning up..."
2626
make clean-build
2727
make clean-integrations
2828
make clean-auto-doc
2929

30-
clean-all: stop ## clean everything.
30+
clean-all: stop ## Clean everything.
3131
make clean-build
3232
make clean-exe
3333
make clean-integrations
3434
make clean-auto-doc
3535
make clean-node
3636
make clean-virt
3737

38-
clean-build: ## remove build artifacts.
38+
clean-build: ## Remove build artifacts.
3939
@if [ -d public ]; then rm -r public; fi
4040

41-
clean-exe: ## remove execs.
41+
clean-exe: ## Remove execs.
4242
@rm -rf ${EXE_LIST}
4343

44-
clean-integrations: ## remove built integrations files.
44+
clean-integrations: ## Remove built integrations files.
4545
@rm -rf ./integrations_data/
4646
@if [ -d data/integrations ]; then \
4747
find ./data/integrations -type f -maxdepth 1 \
@@ -54,10 +54,9 @@ clean-integrations: ## remove built integrations files.
5454
@find ./content/en/integrations -type f -maxdepth 1 \
5555
-a -not -name '_index.md' \
5656
-a -not -name 'adobe_experience_manager.md' \
57+
-a -not -name 'kubernetes_audit_logs.md' \
5758
-a -not -name 'alcide.md' \
5859
-a -not -name 'amazon_guardduty.md' \
59-
-a -not -name 'amazon_vpc.md' \
60-
-a -not -name 'amazon_eks_fargate.md' \
6160
-a -not -name 'amazon_cloudhsm.md' \
6261
-a -not -name 'pivotal_platform.md' \
6362
-a -not -name 'carbon_black.md' \
@@ -66,10 +65,8 @@ clean-integrations: ## remove built integrations files.
6665
-a -not -name 'fluentbit.md' \
6766
-a -not -name 'iam_access_analyzer.md' \
6867
-a -not -name 'integration_sdk.md' \
69-
-a -not -name 'jenkins.md' \
7068
-a -not -name 'journald.md' \
7169
-a -not -name 'kubernetes.md' \
72-
-a -not -name 'lacework.md' \
7370
-a -not -name 'marklogic.md' \
7471
-a -not -name 'nxlog.md' \
7572
-a -not -name 'rss.md' \
@@ -84,7 +81,7 @@ clean-integrations: ## remove built integrations files.
8481
-a -not -name '*.fr.md' \
8582
-exec rm -rf {} \;
8683

87-
clean-auto-doc: ##remove all doc automatically created
84+
clean-auto-doc: ##Remove all doc automatically created
8885
@if [ -d content/en/developers/integrations ]; then \
8986
find ./content/en/developers/integrations -type f -maxdepth 1 -exec rm -rf {} \; ;fi
9087
@if [ content/en/agent/basic_agent_usage/heroku.md ]; then \
@@ -93,43 +90,49 @@ clean-auto-doc: ##remove all doc automatically created
9390
rm -f content/en/tracing/setup/ruby.md ;fi
9491
@if [ content/en/developers/amazon_cloudformation.md ]; then \
9592
rm -f content/en/developers/amazon_cloudformation.md ;fi
93+
@if [ content/en/logs/log_collection/android.md ]; then \
94+
rm -f content/en/logs/log_collection/android.md ;fi
9695

97-
clean-node: ## remove node_modules.
96+
clean-node: ## Remove node_modules.
9897
@if [ -d node_modules ]; then rm -r node_modules; fi
9998

100-
clean-virt: ## remove python virtual env.
99+
clean-virt: ## Remove python virtual env.
101100
@if [ -d ${VIRENV} ]; then rm -rf $(VIRENV); fi
102101

103-
hugpython: hugpython/bin/activate ## build virtualenv used for tests.
102+
hugpython: hugpython/bin/activate ## Build virtualenv used for tests.
104103

105-
hugpython/bin/activate: local/etc/requirements3.txt ## start python virtual environment.
104+
hugpython/bin/activate: local/etc/requirements3.txt ## Start python virtual environment.
106105
@if [ ${PY3} != "false" ]; then \
107106
test -x ${VIRENV}/bin/pip || ${PY3} -m venv --clear ${VIRENV}; \
108107
$(VIRENV)/bin/pip install -r local/etc/requirements3.txt; \
109108
else printf "\e[93mPython 3 is required to fetch integrations and run tests.\033[0m Try https://github.com/pyenv/pyenv.\n"; fi
110109

111-
source-helpers: hugpython ## source the helper functions used in build, test, deploy.
110+
source-helpers: hugpython ## Source the helper functions used in build, test, deploy.
112111
@mkdir -p ${EXEDIR}
113112
@find ${LOCALBIN}/* -type f -exec cp {} ${EXEDIR} \;
114113
@cp -r local/githooks/* .git/hooks
115114

116-
start: clean source-helpers ## start the webpack/hugo server.
117-
@echo "starting up..."
115+
start: clean source-helpers ## Build the documentation with all external content.
116+
@echo "\033[35m\033[1m\nBuilding the documentation with ALL external content:\033[0m"
118117
@if [ ${PY3} != "false" ]; then \
119118
source ${VIRENV}/bin/activate; \
120-
FETCH_INTEGRATIONS=${FETCH_INTEGRATIONS} \
121119
GITHUB_TOKEN=${GITHUB_TOKEN} \
122120
RUN_SERVER=${RUN_SERVER} \
123121
CREATE_I18N_PLACEHOLDERS=${CREATE_I18N_PLACEHOLDERS} \
124122
CONFIGURATION_FILE=${CONFIGURATION_FILE} \
123+
LOCAL=${LOCAL}\
125124
run-site.sh; \
126-
else \
127-
FETCH_INTEGRATIONS="false" \
128-
CREATE_I18N_PLACEHOLDERS="false" \
125+
else @echo "\033[31m\033[1mPython 3 must be available to Build the documentation.\033[0m" ; fi
126+
127+
start-no-pre-build: clean source-helpers ## Build the documentation without automatically pulled content.
128+
@echo "\033[35m\033[1m\nBuilding the documentation with NO external content:\033[0m"
129+
@if [ ${PY3} != "false" ]; then \
130+
source ${VIRENV}/bin/activate; \
129131
RUN_SERVER=${RUN_SERVER} \
130-
run-site.sh; fi
132+
run-site-no-pre-build.sh; \
133+
else @echo "\033[31m\033[1mPython 3 must be available to Build the documentation.\033[0m" ; fi
131134

132-
stop: ## stop wepack watch/hugo server.
135+
stop: ## Stop wepack watch/hugo server.
133136
@echo "stopping previous..."
134137
@pkill -x webpack || true
135138
@pkill -x hugo server --renderToDisk || true

Makefile.config.example

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# Makefile.config
22
# Create a new file called Makefile.config using this file as a template for your local config
33

4-
CREATE_I18N_PLACEHOLDERS := false
5-
FETCH_INTEGRATIONS := true
64
GITHUB_TOKEN := ${github_personal_token}
5+
CREATE_I18N_PLACEHOLDERS:= false
76
RUN_SERVER := true
87
RUN_WEBPACK := true
9-
CONFIGURATION_FILE := "./local/etc/pull_config_preview.yaml"
8+
CONFIGURATION_FILE := "./local/bin/py/build/configurations/pull_config_preview.yaml"
109

10+
LOCAL := True
1111
LOCALBIN := local/bin
1212
LOCALETC := local/etc
13+
1314
EXEDIR := /usr/local/bin
1415
EXE_LIST := `find local/bin -type f -exec sh -c "echo ${EXEDIR}/{} | sed s@${LOCALBIN}/@@" \;`
1516
VIRENV=hugpython

README.md

+26-22
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,31 @@
33
Built with [hugo][1], a static website generation tool.
44

55
## Setup
6+
67
### Installation
78

89
1. [Install npm][2]
910

1011
2. [Install Python3][3] (you can also use [pyenv][4])
1112

12-
3. Install yarn: ```npm install -g yarn```
13+
3. Install yarn: `npm install -g yarn`
1314

14-
4. Download the documentation repo ```git clone https://github.com/DataDog/documentation.git```
15+
4. Download the documentation repo `git clone https://github.com/DataDog/documentation.git`
1516

1617
### Run the server
1718

1819
Inside `documentation/` folder, create a `Makefile.config` file from the [Makefile.config.example][5]
1920

2021
If you are a Datadog employee, add your [Github personal token][6]
2122

22-
To run the site and perform administrative tasks (compile metrics, create i18n placeholders, etc), just execute:
23+
To run the documentation site locally, execute:
2324

24-
`make start`
25+
| Command | Description |
26+
|---------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
27+
| `make start-no-pre-build` | Build the lightweight version of the documentation with no extra content |
28+
| `make start` | Build the full documentation with all extra content (integrations, extra pulled files, localised content...). Only useful if you have a Github personal token setup in your `Makefile.config` or the extra content is available localy. |
2529

26-
Documentation is available at `http://localhost:1313`
30+
**Documentation is then available at `http://localhost:1313`**
2731

2832
To learn more about how the documentation is build refer to the [Documentation Build Wiki][7].
2933

@@ -33,17 +37,19 @@ To use the Makefile, create a Makefile.config. See the instructions at the top o
3337

3438
After you have a config file you can run `make help` to see options:
3539

36-
```
37-
clean-build remove build artifacts.
38-
clean-exe remove execs.
39-
clean-integrations remove built integrations files.
40-
clean-node remove node_modules.
41-
clean-virt remove python virtual env.
42-
clean clean all make installs.
43-
hugpython build virtualenv used for tests.
44-
source-helpers source the helper functions used in build, test, deploy.
45-
start start the gulp/hugo server.
46-
stop stop the gulp/hugo server.
40+
```text
41+
clean-all Clean everything.
42+
clean-build Remove build artifacts.
43+
clean-exe Remove execs.
44+
clean-integrations Remove built integrations files.
45+
clean-node Remove node_modules.
46+
clean-virt Remove python virtual env.
47+
clean Clean all make installs.
48+
hugpython Build virtualenv used for tests.
49+
source-helpers Source the helper functions used in build, test, deploy.
50+
start-no-pre-build Build the documentation without automatically pulled content.
51+
start Build the documentation with all external content.
52+
stop Stop wepack watch/hugo server.
4753
```
4854

4955
## Working on Docs
@@ -63,16 +69,14 @@ stop stop the gulp/hugo server.
6369

6470
### A note about markdown
6571

66-
This site uses Blackfriday for markdown. To learn about the syntax, [see this site][9].
72+
This site uses [Goldmark][9] for markdown which is compliant with [CommonMark 0.29][10].
6773

68-
If you include ANY Markdown in a file, give it an .md extension.
74+
If you include ANY Markdown in a file, give it an `.md` extension.
6975

7076
Make sure all files are lowercase. Macs are case insensitive when creating links to images and pages, but the server is not so tests may be fine locally but the site will fail in production.
7177

7278
## Releasing
7379

74-
If you receive an error regarding `There was a problem getting GitHub Metrics`, please see the [Github personal access token][10].
75-
7680
Within 5 minutes of merging to master, it deploys automatically.
7781

7882
## How to add a new integration
@@ -87,6 +91,6 @@ Within 5 minutes of merging to master, it deploys automatically.
8791
[6]: https://github.com/DataDog/documentation/wiki/Github-personal-token
8892
[7]: https://github.com/DataDog/documentation/wiki/Documentation-Build
8993
[8]: https://github.com/DataDog/documentation/blob/master/CONTRIBUTING.md
90-
[9]: https://github.com/russross/blackfriday
91-
[10]: https://github.com/DataDog/documentation/wiki/Github-personal-token
94+
[9]: https://github.com/yuin/goldmark
95+
[10]: https://spec.commonmark.org/0.29/
9296
[11]: https://docs.datadoghq.com/developers/integrations

config/_default/config.yaml

+11-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,21 @@ pygmentsCodeFences: true
99
# taxonomies
1010
taxonomies:
1111
tag: "tags"
12-
video: "videos"
13-
preserveTaxonomyNames: true
12+
category: "categories"
13+
"video-category": "video-categories"
1414

1515
# language
1616
defaultContentLanguage: "en"
1717
defaultContentLanguageInSubdir: false
1818

1919
# set this as a default otherwise we get "Error: found overlapping content dirs"
2020
contentDir: "content/en"
21+
22+
# gitinfo vars
23+
enableGitInfo: true
24+
25+
# Allow to render HTML in markdown files
26+
markup:
27+
defaultMarkdownHandler: blackfriday
28+
highlight:
29+
guessSyntax: true

0 commit comments

Comments
 (0)