-
-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
198 changed files
with
20,310 additions
and
1,642 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
See our [contributing guidelines](https://6.dev-docs.plone.org/contributing/index.html). | ||
See our [contributing guidelines](https://6.docs.plone.org/contributing/index.html). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## First-time contributors | ||
|
||
You **must** read and follow our [First-time contributors](https://6.docs.plone.org/contributing/first-time.html). | ||
|
||
--- | ||
|
||
## Submit a pull request | ||
|
||
Thank you for your contribution to the Plone Documentation. | ||
|
||
Before submitting this pull request, please make sure you follow our guides: | ||
|
||
- [Contributing to Plone documentation](https://6.docs.plone.org/contributing/index.html) | ||
- [Building and checking the quality of documentation](https://6.docs.plone.org/contributing/setup-build.html) | ||
- [Authors guide](https://6.docs.plone.org/contributing/authors.html) | ||
- [MyST reference](https://6.docs.plone.org/contributing/myst-reference.html) | ||
|
||
## Issue number | ||
|
||
- Fixes # | ||
|
||
## Description | ||
|
||
_Write a description of the fixes or improvements._ | ||
|
||
## Add screenshots or links to a preview of the changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,81 @@ | ||
name: Build and deploy Plone 6 documentation to 6.dev-docs.plone.org | ||
name: Build and deploy Plone 6 documentation to 6.docs.plone.org | ||
|
||
on: | ||
push: | ||
branches: | ||
- "6-dev" | ||
- "6.0" | ||
|
||
env: | ||
node-version: 20.x | ||
|
||
jobs: | ||
build_deploy: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: docs.plone.org | ||
url: https://docs.plone.org | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v4 | ||
- name: Setup Graphviz | ||
uses: ts-graphviz/setup-graphviz@v2 | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
python-version: '3.12' | ||
cache: 'pip' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -q -r requirements-initial.txt | ||
pip install -q -r requirements.txt | ||
pip freeze | ||
# - name: Run spellcheck | ||
# run: make spellcheck | ||
# - name: Run Vale | ||
# run: make vale | ||
|
||
# - name: Run linkcheck | ||
# run: make linkcheck | ||
|
||
- name: Prepare deploy | ||
run: make deploy | ||
|
||
# node setup | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
- name: Use Node.js ${{ env.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
node-version: ${{ env.node-version }} | ||
|
||
# node cache | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
working-directory: submodules/volto | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
- uses: actions/cache@v1 | ||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
- uses: pnpm/action-setup@v3 | ||
name: Install pnpm | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
version: 8 | ||
run_install: false | ||
|
||
- name: Get pnpm store directory | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- uses: actions/cache@v3 | ||
name: Setup pnpm cache | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: StoryBook build | ||
run: cd submodules/volto && yarn && yarn build-storybook -o ../../_build/html/storybook | ||
run: make storybook | ||
|
||
- name: Deploy to server | ||
id: deploy | ||
uses: Pendect/action-rsyncer@v1.1.0 | ||
uses: Pendect/action-rsyncer@v2.0.0 | ||
env: | ||
DEPLOY_KEY: ${{secrets.DEPLOY_KEY_DOCS}} | ||
with: | ||
flags: '-avzr --delete' | ||
options: '' | ||
ssh_options: '-p ${{secrets.DEPLOY_PORT}}' | ||
ssh_options: '-p ${{vars.DEPLOY_PORT}}' | ||
src: '_build/html/' | ||
dest: '${{secrets.DEPLOY_USER_DOCS}}@${{secrets.DEPLOY_SERVER_DOCS}}:${{secrets.DEPLOY_PATH_DOCS}}' | ||
dest: '${{vars.DEPLOY_USER_DOCS}}@${{vars.DEPLOY_SERVER_DOCS}}:${{vars.DEPLOY_PATH_DOCS}}' | ||
|
||
- name: Display status from deploy | ||
run: echo "${{ steps.deploy.outputs.status }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,30 @@ | ||
name: Test Plone 6 documentation | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- "master" | ||
|
||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
python-version: "3.12" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -q -r requirements-initial.txt | ||
pip install -q -r requirements.txt | ||
sudo snap install --edge vale | ||
- name: Run tests with make test | ||
run: make test | ||
|
||
- name: Run vale | ||
run: | | ||
git clone https://github.com/errata-ai/Microsoft.git | ||
cp -r ./Microsoft/Microsoft ./styles | ||
VALEFILES=$(find -L ./docs/ -type d \( -path "./docs/plone.restapi/lib/*" -o -path "./docs/plone.restapi/performance/*" \) -prune -false -o -type f -name "*.md" -print) | ||
vale --no-exit $VALEFILES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
name: Get latest version of submodules and push back to 6-dev branch | ||
# See https://github.com/plone/documentation/issues/1214 for current status | ||
name: Get latest version of submodules and push back to 6.0 branch | ||
|
||
on: | ||
workflow_dispatch: | ||
|
@@ -9,8 +10,8 @@ jobs: | |
steps: | ||
# Checkout | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: 6-dev | ||
with: | ||
ref: 6.0 | ||
submodules: true | ||
|
||
- name: Submodule update | ||
|
@@ -26,5 +27,5 @@ jobs: | |
git status | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git commit -m "Update submo0dules tip" || echo "No changes to commit" | ||
git commit -m "Update submodules tip" || echo "No changes to commit" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
StylesPath = styles | ||
|
||
MinAlertLevel = suggestion | ||
|
||
Vocab = Base,Plone | ||
|
||
Packages = Microsoft | ||
|
||
[*] | ||
BasedOnStyles = Vale, Microsoft | ||
Microsoft.Contractions = suggestion | ||
Microsoft.Units = suggestion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.