forked from platformsh/platformsh-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from platformsh/main
- Loading branch information
Showing
1,018 changed files
with
32,137 additions
and
3,331 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
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 |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
|
||
node_modules | ||
docs/fetchedFilesCache | ||
vendorize |
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,126 @@ | ||
- # The name of this application, which must be unique within a project. | ||
name: 'docs' | ||
|
||
# The type key specifies the language and version for your application. | ||
type: 'nodejs:16' | ||
|
||
# Specify the Hugo version as an env variable. | ||
variables: | ||
env: | ||
HUGOVERSION: 0.116.0 | ||
SITE_DIR: 'sites/platform' | ||
|
||
build: | ||
flavor: none | ||
|
||
source: | ||
root: "/" | ||
|
||
relationships: | ||
search: "search:http" | ||
database: "db:mysql" | ||
|
||
# The hooks that will be triggered when the package is deployed. | ||
hooks: | ||
# Build hooks can modify the application files on disk but not access any services like databases. | ||
build: | | ||
set -e | ||
cd $SITE_DIR | ||
cp ../../themes/psh-docs/postcss.config.js . | ||
npm install | ||
npm run build | ||
./build_docs.sh | ||
npm run build:assets | ||
deploy: | | ||
cd $SITE_DIR | ||
./deploy.sh | ||
# The configuration of the application when it is exposed to the web. | ||
web: | ||
commands: | ||
# Run (404) error and feedback handler | ||
start: cd $SITE_DIR && node index.js | ||
locations: | ||
'/': | ||
# The public directory of the application relative to its root. | ||
root: 'sites/platform/public' | ||
passthru: true | ||
index: ['index.html'] | ||
scripts: false | ||
allow: true | ||
expires: 24h | ||
rules: | ||
\.(css|js|gif|jpe?g|png|ttf|eot|woff2?|otf|cast|mp4|json|yaml|ico|svg?|cast|mp4|json|yaml|svg?|ttf)$: | ||
expires: 4w | ||
|
||
disk: 1024 | ||
|
||
mounts: | ||
"sites/platform/public/scripts/xss/dist/config": | ||
source: local | ||
source_path: "sites/platform/config" | ||
|
||
size: S | ||
|
||
- # The name of this application, which must be unique within a project. | ||
name: 'friday' | ||
|
||
# The type key specifies the language and version for your application. | ||
type: 'nodejs:16' | ||
|
||
# Specify the Hugo version as an env variable. | ||
variables: | ||
env: | ||
HUGOVERSION: 0.116.0 | ||
SITE_DIR: 'sites/friday' | ||
|
||
build: | ||
flavor: none | ||
|
||
source: | ||
root: "/" | ||
|
||
relationships: | ||
search: "search:http" | ||
database: "db:mysql" | ||
|
||
# The hooks that will be triggered when the package is deployed. | ||
hooks: | ||
# Build hooks can modify the application files on disk but not access any services like databases. | ||
build: | | ||
cd $SITE_DIR | ||
cp ../../themes/psh-docs/postcss.config.js . | ||
npm install | ||
npm run build | ||
./build_docs.sh | ||
npm run build:assets | ||
deploy: | | ||
cd $SITE_DIR | ||
./deploy.sh | ||
# The configuration of the application when it is exposed to the web. | ||
web: | ||
commands: | ||
# Run (404) error and feedback handler | ||
start: cd $SITE_DIR && node index.js | ||
locations: | ||
'/': | ||
# The public directory of the application relative to its root. | ||
root: 'sites/friday/public' | ||
passthru: true | ||
index: ['index.html'] | ||
scripts: false | ||
allow: true | ||
expires: 24h | ||
rules: | ||
\.(css|js|gif|jpe?g|png|ttf|eot|woff2?|otf|cast|mp4|json|yaml|ico|svg?|cast|mp4|json|yaml|svg?|ttf)$: | ||
expires: 4w | ||
|
||
disk: 1024 | ||
|
||
mounts: | ||
"sites/friday/public/scripts/xss/dist/config": | ||
source: local | ||
source_path: "sites/friday/config" | ||
|
||
size: S |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
StylesPath = styles | ||
StylesPath = contributing/styles | ||
|
||
Vocab = Platform | ||
|
||
|
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,52 @@ | ||
#!/usr/bin/env bash | ||
|
||
clean_dir () { | ||
DIRECTORY=$1 | ||
if [ -d "$DIRECTORY" ]; then | ||
echo "$DIRECTORY exists. Removing..." | ||
rm -rf $DIRECTORY | ||
echo "Done." | ||
else | ||
echo "$DIRECTORY does not exist. All is well." | ||
fi | ||
} | ||
|
||
clean_file () { | ||
FILE=$1 | ||
if [ -f "$FILE" ]; then | ||
echo "$FILE exists. Removing..." | ||
rm $FILE | ||
echo "Done." | ||
else | ||
echo "$FILE does not exist. All is well." | ||
fi | ||
} | ||
|
||
BUILD_DIR=$1 | ||
cd sites/$BUILD_DIR | ||
|
||
clean_file postcss.config.js | ||
clean_dir fetchedFilesCache | ||
clean_dir node_modules | ||
clean_dir public | ||
clean_dir resources | ||
|
||
cp ../../themes/psh-docs/postcss.config.js . | ||
npm install | ||
npm run build | ||
npm run build:search | ||
hugo | ||
npm run build:assets | ||
|
||
clear | ||
|
||
printf " | ||
BUILD COMPLETE | ||
Verify the resulting build by running the command | ||
python3 -m http.server 8888 -d sites/$BUILD_DIR/public | ||
" |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without 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
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 |
---|---|---|
|
@@ -2,3 +2,5 @@ configuation | |
MongDB | ||
postgreSQL | ||
strapi | ||
|
||
Platform.sh |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.