-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/24749-netlify-plugin-migration
- Loading branch information
Showing
42 changed files
with
331 additions
and
30 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
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,28 @@ | ||
name: Cleanup | ||
|
||
on: | ||
pull_request: | ||
types: [ closed ] | ||
|
||
jobs: | ||
cleanup: | ||
runs-on: ubuntu-latest | ||
steps: # Steps represent a sequence of tasks that will be executed as part of the job | ||
- uses: actions/checkout@v2 | ||
- name: Cloudflare | ||
run: | | ||
npm install -g wrangler | ||
sed -i '1i name = "cms-docs-mr-${{ github.event.pull_request.number }}"' wrangler.toml | ||
sed -i 's+account_id = '\'\''+account_id = '"'"$ACCOUNT_ID"'"'+g' wrangler.toml | ||
sed -i 's+bucket = ""+bucket = "./public"+g' wrangler.toml | ||
sed -i 's+workers_dev = true++g' wrangler.toml | ||
echo "[env.production]" >> wrangler.toml | ||
mkdir -p /home/runner/.wrangler/config/ | ||
echo api_token = '"'"$API_TOKEN"'"' > /home/runner/.wrangler/config/default.toml | ||
cat wrangler.toml | ||
wrangler delete --env=production --force | ||
shell: bash | ||
env: | ||
API_TOKEN: ${{ secrets.API_TOKEN }} | ||
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }} | ||
CLOUDFLARE_API_TOKEN: ${{ secrets.API_TOKEN }} |
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,44 @@ | ||
name: CI | ||
# Controls when the action will run. Triggers the workflow on push | ||
# events but only for the master branch | ||
on: | ||
pull_request: | ||
types: [ opened, synchronize ] | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest # The type of runner that the job will run on | ||
env: | ||
SOURCE_EDITOR_URL: ${{ secrets.SOURCE_EDITOR_URL }} | ||
steps: # Steps represent a sequence of tasks that will be executed as part of the job | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.x | ||
- run: bash ./.github/scripts/get-plugins-docs.sh | ||
- run: pip install -r requirements.txt | ||
- run: mkdocs build | ||
- run: mkdir public | ||
- run: mv ./site ./public/docs | ||
- name: Cloudflare | ||
run: | | ||
npm install -g wrangler | ||
# wrangler init --site cms-docs | ||
sed -i '1i name = "cms-docs-mr-${{ github.event.pull_request.number }}"' wrangler.toml | ||
sed -i 's+account_id = '\'\''+account_id = '"'"$ACCOUNT_ID"'"'+g' wrangler.toml | ||
sed -i 's+bucket = ""+bucket = "./public"+g' wrangler.toml | ||
sed -i 's+workers_dev = true++g' wrangler.toml | ||
echo "[env.production]" >> wrangler.toml | ||
mkdir -p /home/runner/.wrangler/config/ | ||
echo api_token = '"'"$API_TOKEN"'"' > /home/runner/.wrangler/config/default.toml | ||
cat wrangler.toml | ||
cd workers-site | ||
npm install | ||
cd ../ | ||
wrangler deploy --env=production | ||
shell: bash | ||
env: | ||
API_TOKEN: ${{ secrets.API_TOKEN }} | ||
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }} | ||
CLOUDFLARE_API_TOKEN: ${{ secrets.API_TOKEN }} |
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
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,38 @@ | ||
title: Slug | Flotiq documentation | ||
description: This plugin simplifies the process of creating slugs for your Content Object. | ||
|
||
# Slug generation plugin | ||
|
||
This plugin simplifies the process of creating slugs for your Content Object. It’s particularly useful when you want to generate slugs automatically based on existing data within a Content Object (e.g. the title of a blog post). | ||
|
||
## Installing the Slug plugin | ||
|
||
Find in the right sidebar panel `Plugins` and select. | ||
|
||
![Flotiq plugins](images/sidebar-plugins.png){: .center .width25 .border} | ||
|
||
On the next screen, click the plus icon next to `Slug` to install and enable the plugin. | ||
|
||
![Install Slug plugin](images/slug/install.png){: .center .width75 .border} | ||
|
||
Once the plugin is enabled, click `Manage` to open the modal with the form. | ||
|
||
![Manage Slug](images/slug/manage.png){: .center .width75 .border} | ||
|
||
After the modal is opened, click `Add`. | ||
|
||
![Add Slug](images/slug/add.png){: .center .width75 .border} | ||
|
||
Next, fill in the details and click `Save changes` to complete your plugin setup. | ||
|
||
![Setting up Slug in Flotiq](images/slug/settings.png){: .center .width75 .border} | ||
|
||
* Content Type - Defines the type of objects for which the slug will be generated. | ||
|
||
* Slug source field - Determines the field on which the slug will be based. | ||
|
||
* Target field - Specifies the field to which the slug will be entered. | ||
|
||
You're done. Now you will see the refresh icon next to the slug field in the Content Object form. If you’re creating a new object and the field is currently empty, it will be auto-filled. If you’re editing an existing object or the field contains data, click the refresh icon to regenerate the slug. | ||
|
||
![Slug outcome](images/slug/outcome.png){: .center .width75 .border} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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
Oops, something went wrong.