Skip to content

Commit a6607f3

Browse files
committed
Merge branch 'development' into MvM-OIDCProvider
2 parents 49fc3ad + efccaa2 commit a6607f3

File tree

4,550 files changed

+90281
-15578
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,550 files changed

+90281
-15578
lines changed

.github/workflows/lint-action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ jobs:
5252
body: |
5353
${{ env.VER }}
5454
branch: lint-docs
55-
assignees: NatasaKralj
56-
reviewers: NatasaKralj
55+
assignees: MarkvanMents
56+
reviewers: MarkvanMents
5757
labels: Internal WIP
5858
add-paths: |
5959
content/en/docs/**/*.md
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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 08 22 * *'
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+
# The type of runner that the job will run on
15+
runs-on: ubuntu-latest
16+
# Steps represent a sequence of tasks that will be executed as part of the job
17+
steps:
18+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
19+
- name: Checkout repo
20+
uses: actions/checkout@v3
21+
- uses: actions/setup-python@v4
22+
with:
23+
python-version: '3.10'
24+
- run: python _scripts/removeUnusedAttachments.py
25+
- name: Create Pull Request
26+
uses: peter-evans/create-pull-request@v4
27+
with:
28+
commit-message: Run removeUnusedAttachments.py on docs
29+
title: '[Auto] Remove unused attachments'
30+
body: |
31+
"We're trying to delete some unnecessary attachments."
32+
branch: rem-unused-attachments
33+
assignees: JohannaHemminger
34+
reviewers: JohannaHemminger
35+
labels: Internal WIP
36+
add-paths: |
37+
static/attachments/**

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
language: node_js
22
node_js:
3-
- 16 # latest LTS version ('node' will give latest version)
3+
- 18 # latest LTS version ('node' will give latest version, 'lts/*' will give LTS version )
44
arch: amd64 # optional, this is default, routes to a full VM
55
# arch: arm64 # this is the recommended LXD container - faster spin up but some limitations Not used as it seems very unstable.
66
os: linux # optional, this is default
7-
dist: xenial # or bionic | xenial | trusty | precise with xenial as default - Recommended here: https://docs.travis-ci.com/user/reference/overview/#deprecated-virtualization-environments
7+
dist: jammy # or bionic | xenial | trusty | precise with xenial as default - Recommended here: https://docs.travis-ci.com/user/reference/overview/#deprecated-virtualization-environments
88

99
git:
1010
depth: 20000 # We're cloning a max of xxx commits, so the author date is correct
@@ -86,7 +86,7 @@ install:
8686
before_script:
8787
##############
8888
- pyenv versions # list python versions supported by pyenv in case version in next command is removed
89-
- pyenv global 3.6.7 # this version needs to be already installed in the travis build
89+
- pyenv global 3.7.13 # this version needs to be already installed in the travis build
9090
- python -V
9191

9292
script:
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# EU Digital Services Act
2+
3+
The Digital Services Act (DSA, Regulation (EU) 2022/2065) is an EU Regulation which entered into force on November 16, 2022. It aims to set out harmonized rules for a safe, predictable and trusted online environment applicable to intermediary services that, among others, connect users with goods, services, and content from others and includes online platforms such as the Mendix Community: https://forum.mendix.com/.
4+
5+
Under Article 24 (2) of the DSA, online platforms are required to publish "information on the average monthly active recipients of the service" in the EU by February 17, 2023 and at least once every six months thereafter. This is for the purposes of determining whether an online platform is a "very large online platform" (VLOP) as per the DSA, meaning, a platform which reaches an average of at least 45 million users per month in the EU (representing 10% of the EU population). VLOPs are subject to additional requirements due to the role they play in the dissemination of content throughout the EU.
6+
7+
Based on the six-month period from August 2022 to January 2023, the average number of monthly active recipients of our Mendix Community in the EU was well below the threshold of 45 million.
8+
9+
Since, at the time of publication of this information, the European Commission has not enacted delegated acts (as mentioned under Article 24 (2) of the DSA) on the methodology of the calculation of the number of monthly active recipients, we have performed our calculation to the best of our knowledge based on the current information the DSA provides as well as the European Commission’s guidance on the requirement to publish user numbers of February 1, 2023. We will continue to monitor the number of average monthly active recipients of our Mendix Community in the EU and will publish updated information in accordance with Article 24 (2) of the DSA.
10+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# EU Digital Services Act
2+
3+
The Digital Services Act (DSA, Regulation (EU) 2022/2065) is an EU Regulation which entered into force on November 16, 2022. It aims to set out harmonized rules for a safe, predictable and trusted online environment applicable to intermediary services that, among others, connect users with goods, services, and content from others and includes online platforms such as the Mendix Marketplace: https://marketplace.mendix.com/.
4+
5+
Under Article 24 (2) of the DSA, online platforms are required to publish "information on the average monthly active recipients of the service" in the EU by February 17, 2023 and at least once every six months thereafter. This is for the purposes of determining whether an online platform is a "very large online platform" (VLOP) as per the DSA, meaning, a platform which reaches an average of at least 45 million users per month in the EU (representing 10% of the EU population). VLOPs are subject to additional requirements due to the role they play in the dissemination of content throughout the EU.
6+
7+
Based on the six-month period from August 2022 to January 2023, the average number of monthly active recipients of our Mendix Marketplace in the EU was well below the threshold of 45 million.
8+
9+
Since, at the time of publication of this information, the European Commission has not enacted delegated acts (as mentioned under Article 24 (2) of the DSA) on the methodology of the calculation of the number of monthly active recipients, we have performed our calculation to the best of our knowledge based on the current information the DSA provides as well as the European Commission’s guidance on the requirement to publish user numbers of February 1, 2023. We will continue to monitor the number of average monthly active recipients of our Mendix Marketplace in the EU and will publish updated information in accordance with Article 24 (2) of the DSA.

EU-DIGITAL-SERVICES-ACT.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# EU Digital Services Act
2+
3+
The Digital Services Act (DSA, Regulation (EU) 2022/2065) is an EU Regulation which entered into force on November 16, 2022. It aims to set out harmonized rules for a safe, predictable, and trusted online environment applicable to intermediary services that, among others, connect users with goods, services, and content from others and includes online platforms such as the Mendix Documentation: https://docs.mendix.com/.
4+
5+
Under Article 24 (2) of the DSA, online platforms are required to publish "information on the average monthly active recipients of the service" in the EU by February 17, 2023 and at least once every six months thereafter. This is for the purposes of determining whether an online platform is a "very large online platform" (VLOP) as per the DSA, meaning, a platform which reaches an average of at least 45 million users per month in the EU (representing 10% of the EU population). VLOPs are subject to additional requirements due to the role they play in the dissemination of content throughout the EU.
6+
7+
Based on the six-month period from August 2022 to January 2023, the average number of monthly active recipients of our Mendix Documentation in the EU was well below the threshold of 45 million.
8+
9+
Since, at the time of publication of this information, the European Commission has not enacted delegated acts (as mentioned under Article 24 (2) of the DSA) on the methodology of the calculation of the number of monthly active recipients, we have performed our calculation to the best of our knowledge based on the current information the DSA provides as well as the European Commission’s guidance on the requirement to publish user numbers of February 1, 2023. We will continue to monitor the number of average monthly active recipients of our Mendix Documentation in the EU and will publish updated information in accordance with Article 24 (2) of the DSA.

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ Build status:
77
* production [![Build Status](https://secure.travis-ci.org/mendix/docs.png?branch=production)](https://app.travis-ci.com/github/mendix/docs)
88
* development [![Build Status](https://secure.travis-ci.org/mendix/docs.png?branch=development)](https://app.travis-ci.com/github/mendix/docs)
99

10+
## Working in the Mx10 Private Repo
11+
12+
To make Mx10 Beta 1 updates here, please do the following:
13+
14+
1. Create a separate branch off of the `mx-10-branch`.
15+
1. Do not commit directly to `development` or `production`!
16+
2. Make your documentation changes.
17+
3. Create a pull request with those changes. Make sure you chose the `mx-10-branch` as the base branch.
18+
4. Your component’s dedicated technical writer will be assigned to review your work.
19+
1020
## Contribute
1121

1222
Want to contribute? Take a look at [How to Contribute to the Mendix Documentation](https://docs.mendix.com/developerportal/community-tools/contribute-to-the-mendix-documentation). It will guide you through the process of submitting updates to the docs directly from Github or from a local branch.
@@ -51,3 +61,5 @@ See the [Hugo Server](https://gohugo.io/commands/hugo_server/) documentation for
5161
#### Potential Issues
5262

5363
If you are using a Mac, you might get an error `too many open files` or `fatal error: pipe failed`. By default, your Mac is probably set to restrict the number of open files. You will need to override this, see [Docsy known issues](https://www.docsy.dev/docs/getting-started/#known-issues) for more information.
64+
65+
If your system has a low memory limit, add the `--renderToDisk` parameter to the Hugo command, for example `hugo server --environment development --renderToDisk`. With this option, Hugo will only load pages on demand; without the `--renderToDisk` option, Hugo will load all documentation into memory for faster access.

_scripts/removeUnusedAttachments.py

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
"""
2+
removeUnusedAttachments.py goes through all .md files to make a list of attachment links.
3+
"""
4+
5+
import re
6+
import logging
7+
import pathlib
8+
9+
# Generic walk function for crawling through a directory
10+
def dirWalk(start, globPattern="**/*"):
11+
dirList = list(start.glob(globPattern))
12+
return dirList
13+
14+
# Create log file so we can check out the list of attachments later
15+
logging.basicConfig(filename='attachmentlistlog.log', filemode='w', format='%(message)s')
16+
17+
# Grab content directory
18+
startDir = "content/en/docs/"
19+
# Define the start directory object
20+
start = pathlib.Path(startDir)
21+
22+
# Create an empty list to help with parsing data
23+
attachmentList = []
24+
25+
# Walk through all directories and files to find .md files and create a list of them
26+
dirList_1 = dirWalk(start, "**/*.md")
27+
# Walk through all files in directory
28+
for dirListItem in dirList_1:
29+
# Relative file path that includes name of file
30+
relFilePath = dirListItem.relative_to(start) #os.path.relpath(filePath, startDir) was what we had before
31+
# Pattern to find any /attachments/ followed by either ) or "
32+
fullAttachmentRefSearch = '/attachments/([-./\+\w= ]*)?(?:\)|")'
33+
# Opens Markdown file and goes through every line
34+
with open(dirListItem, mode='r', encoding="utf-8") as mdFile:
35+
for line in mdFile:
36+
fullSearch = re.findall(fullAttachmentRefSearch,line)
37+
if fullSearch != []:
38+
for searchitem in fullSearch:
39+
# Creates a dictionary for file with attachments
40+
itemDict = {"File path": relFilePath, "File name": dirListItem.name, "Attachment Link": searchitem}
41+
# Appends each dictionary to attachmentList
42+
attachmentList.append(itemDict)
43+
logging.warning(attachmentList)
44+
45+
# Grab attachment directory
46+
attachmentDir = "static/attachments/"
47+
# Define the attachment directory object
48+
attachment_start = pathlib.Path(attachmentDir)
49+
50+
# Walk through all directories and files and create a list, then check that they're in the attachmentList
51+
dirList_2 = dirWalk(attachment_start, "**/*.*")
52+
# For a file in dirList_2, mark that it should be deleted by default
53+
for file in dirList_2:
54+
deleteFlag = True
55+
# fullSearch returns a list, so we need to pull things (items) out of it
56+
for item in attachmentList:
57+
inList = item["Attachment Link"]
58+
# If there's something in the attachment list that's also in dirList2, then we want to keep it
59+
if file.name in inList:
60+
deleteFlag = False
61+
break
62+
# Delete files that are in dirList2 and not in the attachment list
63+
if deleteFlag is True:
64+
# Make sure that it is not a directory
65+
if pathlib.Path.is_file(file):
66+
pathlib.Path.unlink(file)

assets/js/progress-tracking.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,27 +46,25 @@
4646
return {navElement: element, targetElement};
4747
});
4848

49-
// We have removed this, so it isn't found. Remove altogether - see commented lines below
49+
// NK - navbarHeight is changed so highlighting in ToC while scrolling isn't impacted by MxDock height - see commented line below
5050
// const navbarHeight = window.document.querySelector("header > nav").offsetHeight;
51-
51+
const navbarHeight = 49; // 1+MxDock offset height (in px) as set in scroll-padding-top in assets/scss/_main-container.scss
52+
5253
const handleActiveSection = () => {
5354
// The array should be sorted according to the position of the elements on the page
5455
navItems.sort((a, b) => a.targetElement.offsetTop - b.targetElement.offsetTop);
5556

5657
let currentActiveIndex;
5758

5859
// If the top of the window is above the first element, select the first element
59-
//if (navItems[0].targetElement.offsetTop + navbarHeight > window.scrollY) {
60-
if (navItems[0].targetElement.offsetTop > window.scrollY) {
60+
if (navItems[0].targetElement.offsetTop - navbarHeight > window.scrollY) {
6161
currentActiveIndex = 0;
6262
// If the top of the window is under the last element, select the last element
63-
// } else if (navItems[navItems.length - 1].targetElement.offsetTop + navbarHeight < window.scrollY) {
64-
} else if (navItems[navItems.length - 1].targetElement.offsetTop < window.scrollY) {
63+
} else if (navItems[navItems.length - 1].targetElement.offsetTop - navbarHeight < window.scrollY) {
6564
currentActiveIndex = navItems.length - 1;
6665
} else {
6766
// Try to determine the best element
68-
// currentActiveIndex = navItems.findIndex((item) => item.targetElement.offsetTop + navbarHeight > window.scrollY) - 1;
69-
currentActiveIndex = navItems.findIndex((item) => item.targetElement.offsetTop > window.scrollY) - 1;
67+
currentActiveIndex = navItems.findIndex((item) => item.targetElement.offsetTop - navbarHeight > window.scrollY) - 1;
7068
}
7169
// MvM: Change classlist to use our activeToc rather than 'current' specified in Docsy PR
7270
navItems.forEach((item) => item.navElement.classList.remove('activeToc'));

assets/scss/_main-container.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// NK - Sets default offset for any inline anchor from height of dock
2+
html {
3+
scroll-padding-top: 48px; /* height of sticky header */
4+
}
5+
16
// The outer page container i.e. common styles for any page.
27
.td-outer {
38
display: flex;

0 commit comments

Comments
 (0)