Skip to content

Commit c07ad3a

Browse files
Merge pull request #1 from mendix/development
merge
2 parents 7c16bf1 + 73509e0 commit c07ad3a

File tree

21,924 files changed

+384511
-301852
lines changed

Some content is hidden

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

21,924 files changed

+384511
-301852
lines changed

.github/workflows/lint-action.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# This is a basic workflow to help you get started with Actions
2+
name: Auto lint content
3+
4+
# Controls when the workflow will run
5+
on:
6+
# Triggers the workflow at a specific time
7+
schedule:
8+
- cron: '00 20 1 * *'
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
12+
jobs:
13+
# This workflow contains a single job called "lint-pr"
14+
lint-pr:
15+
# Check if the event is not triggered by a fork
16+
if: github.repository_owner == 'mendix'
17+
# The type of runner that the job will run on
18+
runs-on: ubuntu-latest
19+
# Steps represent a sequence of tasks that will be executed as part of the job
20+
steps:
21+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22+
- name: Checkout repo
23+
uses: actions/checkout@v4
24+
# Installs NodeJS v20 in runner environment (upgraded from v16 in Feb 2024)
25+
- name: Install NodeJS
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: '20'
29+
# Installs linting tool via npm
30+
# Look at using the related GitHub action here: https://github.com/DavidAnson/markdownlint-cli2-action
31+
- name: Install markdown linter
32+
run: npm install markdownlint-cli2 --global
33+
# Runs linter on content, rules specified in yaml config file
34+
# Adds the terminal messages to tmp.log file
35+
- name: Run markdownlint-cli2
36+
run: |
37+
markdownlint-cli2 --config ".markdownlint-cli2.yaml" "content/en/docs/**/*.md" 2>&1 | tee ./tmp.log
38+
# Dumps tmp.log contents into env variable, to use for PR body text
39+
- name: Grab markdownlint log
40+
id: echo-log
41+
run: |
42+
chmod +x ./tmp.log
43+
VER=$(cat << EOF ./tmp.log)
44+
echo "VER<<EOF" >> $GITHUB_ENV
45+
echo "$VER" >> $GITHUB_ENV
46+
echo "EOF" >> $GITHUB_ENV
47+
# Creates PR for linted content changes - needs version > 4 for NodeJS 20
48+
- name: Create pull request
49+
uses: peter-evans/create-pull-request@v6
50+
with:
51+
commit-message: Run markdownlint-cli2 on docs to find (and correct) linting errors.
52+
title: '[Auto] Lint docs'
53+
body: |
54+
${{ env.VER }}
55+
branch: lint-docs
56+
committer: MarkvanMents <[email protected]>
57+
assignees: MarkvanMents
58+
reviewers: MarkvanMents
59+
labels: Internal WIP
60+
add-paths: |
61+
content/en/docs/**/*.md
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# This is a basic workflow to help you get started with Actions
2+
name: Remove unused attachments
3+
4+
# Controls when the workflow will run
5+
on:
6+
schedule:
7+
- cron: '00 21 1 * *'
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
11+
jobs:
12+
# This workflow contains a single job called "rem-unused-attachments"
13+
rem-unused-attachments:
14+
# Check if the event is not triggered by a fork
15+
if: github.repository_owner == 'mendix'
16+
# The type of runner that the job will run on
17+
runs-on: ubuntu-latest
18+
# Steps represent a sequence of tasks that will be executed as part of the job
19+
steps:
20+
21+
# Checks out your repository under $GITHUB_WORKSPACE, so your job can access it
22+
- name: Checkout repo
23+
uses: actions/checkout@v4
24+
- uses: actions/setup-python@v5
25+
with:
26+
python-version: '3.10'
27+
- run: python _scripts/removeUnusedAttachments.py
28+
29+
# Creates pull request
30+
- name: Create Pull Request
31+
uses: peter-evans/create-pull-request@v6
32+
with:
33+
commit-message: Run removeUnusedAttachments.py on docs
34+
title: '[Auto] Remove unused attachments'
35+
body: |
36+
Pull Request to delete attachments that are no longer used.
37+
Check the htmltest output from the CI/CD pipeline to ensure that nothing has been removed accidentally.
38+
branch: rem-unused-attachments
39+
committer: MarkvanMents <[email protected]>
40+
assignees: MarkvanMents
41+
reviewers: MarkvanMents
42+
labels: Internal WIP
43+
add-paths: |
44+
static/attachments/**

.gitignore

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
_site
2-
node_modules
3-
*DS_Store*
4-
.jekyll-metadata
1+
# Currently ignored files and directories
2+
/node_modules/
3+
/public/
4+
/resources/
5+
/tmp/
6+
hugo.exe
7+
/htmltest.exe
8+
/.hugo_build.lock
59

6-
_algolia_api_key_
10+
# For Mac users
11+
.DS_Store
712

8-
data/history.yml
13+
# Legacy for users who still have leftovers from previous Docs Stack
14+
/_site/
15+
/.vscode/
16+
/.idea/
17+
bin
918
data/asset*.json
10-
11-
static/public/js/*
12-
static/public/styles/*
13-
14-
static/json/*.json
15-
16-
yarn-error.log
17-
18-
manifest_test.yml
19-
_scripts/hugo_bin
20-
.vscode/settings.json
21-
.idea
22-
19+
data/history.yml
20+
/static/public/js/*
21+
/static/public/styles/*
22+
/static/json/*.json
23+
/yarn-error.log
24+
/_scripts/hugo_bin
2325
mx-1-get-hugo-and-node.ps1
2426
mx-2-install-dependencies.bat
2527
mx-3-run-server.bat
26-
bin
27-
package-lock.json

.htmltest.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# ==========================
2+
# Configuration for HTMLTEST
3+
# ==========================
4+
# See documentation in repo: https://github.com/wjdp/htmltest
5+
6+
DirectoryPath: "./public"
7+
DirectoryIndex: "index.html"
8+
FileExtension: .html
9+
# Do not check external files - will want to do this monthly or so - implement later
10+
CheckExternal: false
11+
CheckMailto: false
12+
# Not checking scripts for speed - should be OK as generated through HUGO
13+
CheckScripts: false
14+
CheckTel: false
15+
IgnoreAltMissing: true
16+
IgnoreDirectoryMissingTrailingSlash: false
17+
IgnoreDirs:
18+
- "_includes"
19+
- "_print"
20+
- "attachments"
21+
- "css"
22+
- "favicons"
23+
- "icons"
24+
- "js"
25+
- "scss"
26+
- "webfonts"
27+
IgnoreEmptyHref: true
28+
IgnoreInternalEmptyHash: true
29+
IgnoreInternalURLs:
30+
- "/misc/js/script.js"
31+
- "/js/"
32+
# HUGO generates a lot of tags which don't need to be tested
33+
IgnoreTagAttribute: "data-proofer-ignore"
34+
# Ignore URLs which return a 401/403 authentication error - might want to check these ignored URLs occasionally to ensure they are still valid.
35+
# NOTE DOUBLE \\ needed to escape special characters in the string
36+
IgnoreURLs:
37+
- "example.com"
38+
- "support.mendix.com.*"
39+
- "sapes5.sapdevcenter.com/sap/opu/odata/iwbep/GWSAMPLE_BASIC.*"
40+
- "www.microsoft.com/en-us/download/details.aspx\\?id=11774"
41+
42+
# ==========================================================
43+
# Speed up using concurrent testing by changing flag to true
44+
# Using 4 concurrent documents halves the processing time
45+
# EXPERIMENTAL - REMOVE IF THERE ARE PROBLEMS
46+
#===========================================================
47+
48+
TestFilesConcurrently: false
49+
DocumentConcurrencylimit: 4

0 commit comments

Comments
 (0)