Skip to content

Commit

Permalink
systema/ -> _systema/
Browse files Browse the repository at this point in the history
  • Loading branch information
fititnt committed May 13, 2021
1 parent ace9cc2 commit 9c8f1c1
Show file tree
Hide file tree
Showing 18 changed files with 49 additions and 49 deletions.
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
## These files are HTML liquid templates
_includes/fn/* linguist-language=Liquid

## Files on systema/, at the moment, will be marked as vendored
## Files on _systema/, at the moment, will be marked as vendored
## We may change a bit this later
systema/* linguist-vendored
_systema/* linguist-vendored

Gemfile linguist-vendored
robots.txt linguist-vendored
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/05-deploy-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2

- name: Build
run: bash systema/infrastructuram/travis-ci.sh
run: bash _systema/infrastructuram/travis-ci.sh

# @see https://github.com/actions/setup-java#supported-distributions
- name: "Java installation (required by openapi-generator-cli)"
Expand All @@ -37,7 +37,7 @@ jobs:
run: npm install -g @openapitools/openapi-generator-cli

- name: "openapi-generator-cli: generate files"
run: bash ./systema/programma/openapi-exportandum.sh
run: bash ./_systema/programma/openapi-exportandum.sh

- name: "Steps before Jekyll: CNAME"
run: echo "hapi.etica.ai" > ./CNAME
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
_site/
docs/
node_modules/
systema/node_modules/
systema/package-lock.json
_systema/node_modules/
_systema/package-lock.json
openapitools.json
.gqlconfig
.graphqlrc.yaml
Expand Down
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# @see systema/infrastructuram/temporarium.sh
# @see _systema/infrastructuram/temporarium.sh
# @see https://docs.travis-ci.com/user/deployment/script/


# Without specifing language, it would default to ruby and this can fail
# script: bash systema/infrastructuram/travis-ci.sh
# script: bash _systema/infrastructuram/travis-ci.sh
# @see https://docs.travis-ci.com/user/languages/minimal-and-generic/
language: generic

deploy:
provider: script
script: bash systema/infrastructuram/travis-ci.sh
script: bash _systema/infrastructuram/travis-ci.sh
on:
branch: main
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ twitter:
card: summary

exclude:
- systema/
- _systema/
- "api/*/*/*/html/*.md"
- "api/*/*/*/html2/*.md"
- "api/*/*/*/mysql-schema/*.md"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# FILE: temporarium.sh
#
# USAGE: ./systema/infrastructuram/temporarium.sh
# USAGE: ./_systema/infrastructuram/temporarium.sh
#
# DESCRIPTION: ---
#
Expand Down Expand Up @@ -73,9 +73,9 @@ ssh-keygen -t ed25519 -C "[email protected]" -f "$H

### ALTERNATIVE TWO ------------------------------------------------------------
# @see https://stackoverflow.com/questions/7927750/specify-an-ssh-key-for-git-push-for-a-given-domain/43953433#43953433
# fititnt@bravo:/workspace/git/HXL-CPLP/Auxilium-Humanitarium-API$ ./systema/programma/displicandum-gh-pages.sh
# fititnt@bravo:/workspace/git/HXL-CPLP/Auxilium-Humanitarium-API$ ./_systema/programma/displicandum-gh-pages.sh
# manual instructions says
# cd /workspace/git/HXL-CPLP/Auxilium-Humanitarium-API/systema/cache/gh-pages-temp-git
# cd /workspace/git/HXL-CPLP/Auxilium-Humanitarium-API/_systema/cache/gh-pages-temp-git
# git push -u remote-publisher gh-pages --force
# New command instead of git push -u remote-publisher gh-pages --force
# GIT_SSH_COMMAND="ssh -i $HOME/.ssh/eticaai/id_ed25519-hapi" git push -u remote-publisher gh-pages --force
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# FILE: travis-ci.sh
#
# USAGE: ./systema/infrastructuram/travis-ci.sh
# USAGE: ./_systema/infrastructuram/travis-ci.sh
#
# DESCRIPTION: ---
#
Expand Down Expand Up @@ -43,5 +43,5 @@ TEST2="test1${HAPI_DEPLOY_KEY_TEST}test2"

echo "TEST2: [$TEST2]"

echo "hello from /systema/infrastructuram/travis-ci.sh"
echo "hello from /_systema/infrastructuram/travis-ci.sh"
exit 0
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@
// Were in branch main at this point, publishing files to branch gh-pages folder docs/
// gh-pages --src '**/*' --dest '.' --branch gh-pages --user 'HXL-CPLP bot <[email protected]>' --no-push --no-history
// gh-pages --dist '/workspace/git/HXL-CPLP/Auxilium-Humanitarium-API/' --dest 'docs/' --branch gh-pages --user 'HXL-CPLP bot <[email protected]>' --no-push --no-history
// ./systema/node_modules/gh-pages/bin/gh-pages.js --help
// ./_systema/node_modules/gh-pages/bin/gh-pages.js --help

// node ./systema/node_modules/gh-pages/bin/gh-pages.js --git git --no-push --no-history
// node ./_systema/node_modules/gh-pages/bin/gh-pages.js --git git --no-push --no-history
// gh-pages --git "$(which git)"


// TODO: consider use --before-add
// https://www.npmjs.com/package/gh-pages#optionsbeforeadd

// ./systema/programma/displicandum-gh-pages.js
// ./_systema/programma/displicandum-gh-pages.js

import { publish } from 'gh-pages';

Expand Down Expand Up @@ -66,7 +66,7 @@ publish(

// Remove files on dest before commit
// remove: "node_modules/",
remove: "systema/",
remove: "_systema/",

// Push to target repository
push: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
# USAGE: ./displicandum-gh-pages.sh
#
# DESCRIPTION: ./systema/programma/displicandum-gh-pages.sh
# DESCRIPTION: ./_systema/programma/displicandum-gh-pages.sh
#
# OPTIONS: ---
#
Expand Down Expand Up @@ -47,7 +47,7 @@ ROOTDIR="/workspace/git/HXL-CPLP/Auxilium-Humanitarium-API"
# TODO: let configurable ROOTDIR later
# ROOTDIR="$(pwd)"

LOCALGIT="${ROOTDIR}/systema/cache/gh-pages-temp-git"
LOCALGIT="${ROOTDIR}/_systema/cache/gh-pages-temp-git"
DESTDIR="${LOCALGIT}/docs"
LOCALBUILD="${LOCALGIT}/build"

Expand Down Expand Up @@ -121,7 +121,7 @@ fi

# echo "git status ${LOCALGIT}"
# git status "${LOCALGIT}"
# cd /workspace/git/HXL-CPLP/Auxilium-Humanitarium-API/systema/cache/gh-pages-temp-git && git status
# cd /workspace/git/HXL-CPLP/Auxilium-Humanitarium-API/_systema/cache/gh-pages-temp-git && git status
# mkdir "cache/gh-pages-temp-git"

# git init cache/gh-pages-temp-git/
Expand Down Expand Up @@ -174,31 +174,31 @@ echo GIT_SSH_COMMAND="ssh -i $HOME/.ssh/eticaai/id_ed25519-hapi" git push -u "${
# GIT_COMMITTER_NAME="${GIT_COMMITTER_NAME}" \
# GIT_COMMITTER_EMAIL="${GIT_COMMITTER_EMAIL}" git commit --author="New Name <[email protected]>

# /workspace/git/HXL-CPLP/Auxilium-Humanitarium-API/systema/cache/gh-pages-temp-git
# http://git.workspace.localhost/HXL-CPLP/Auxilium-Humanitarium-API/systema/cache/gh-pages-temp-git/docs/
# /workspace/git/HXL-CPLP/Auxilium-Humanitarium-API/_systema/cache/gh-pages-temp-git
# http://git.workspace.localhost/HXL-CPLP/Auxilium-Humanitarium-API/_systema/cache/gh-pages-temp-git/docs/
# https://ohshitgit.com/
# git reflog

# openapi-generator-cli list
# openapi-generator-cli generate help
# openapi-generator-cli generate --generator-name dynamic-html --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output systema/cache/test1
# openapi-generator-cli generate --generator-name html2 --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output systema/cache/test2
# openapi-generator-cli generate --generator-name html --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output systema/cache/test3
# openapi-generator-cli generate --generator-name graphql-schema --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output systema/cache/test4
# openapi-generator-cli generate --generator-name protobuf-schema --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output systema/cache/test5
# openapi-generator-cli generate --generator-name mysql-schema --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output systema/cache/test6
# openapi-generator-cli generate --generator-name avro-schema --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output systema/cache/test7
# openapi-generator-cli generate --generator-name apache2 --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output systema/cache/test8
# openapi-generator-cli generate --generator-name apache2 --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output systema/cache/test8
# openapi-generator-cli generate --generator-name ktorm-schema --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output systema/cache/test-ktorm-schema
# openapi-generator-cli generate --generator-name plantuml --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output systema/cache/test-plantuml
# openapi-generator-cli generate --generator-name openapi-yaml --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output systema/cache/test-openapi-yaml
# openapi-generator-cli generate --generator-name openapi --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output systema/cache/test-openapi
# openapi-generator-cli generate --generator-name asciidoc --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output systema/cache/test-asciidoc
# openapi-generator-cli generate --generator-name markdown --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output systema/cache/test-markdown
# openapi-generator-cli generate --generator-name php --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output systema/cache/test-client-php
# openapi-generator-cli generate --generator-name bash --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output systema/cache/test-client-bash
# openapi-generator-cli generate --generator-name javascript --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output systema/cache/test-client-javascript
# openapi-generator-cli generate --generator-name dynamic-html --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output _systema/cache/test1
# openapi-generator-cli generate --generator-name html2 --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output _systema/cache/test2
# openapi-generator-cli generate --generator-name html --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output _systema/cache/test3
# openapi-generator-cli generate --generator-name graphql-schema --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output _systema/cache/test4
# openapi-generator-cli generate --generator-name protobuf-schema --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output _systema/cache/test5
# openapi-generator-cli generate --generator-name mysql-schema --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output _systema/cache/test6
# openapi-generator-cli generate --generator-name avro-schema --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output _systema/cache/test7
# openapi-generator-cli generate --generator-name apache2 --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output _systema/cache/test8
# openapi-generator-cli generate --generator-name apache2 --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output _systema/cache/test8
# openapi-generator-cli generate --generator-name ktorm-schema --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output _systema/cache/test-ktorm-schema
# openapi-generator-cli generate --generator-name plantuml --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output _systema/cache/test-plantuml
# openapi-generator-cli generate --generator-name openapi-yaml --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output _systema/cache/test-openapi-yaml
# openapi-generator-cli generate --generator-name openapi --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output _systema/cache/test-openapi
# openapi-generator-cli generate --generator-name asciidoc --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output _systema/cache/test-asciidoc
# openapi-generator-cli generate --generator-name markdown --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output _systema/cache/test-markdown
# openapi-generator-cli generate --generator-name php --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output _systema/cache/test-client-php
# openapi-generator-cli generate --generator-name bash --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output _systema/cache/test-client-bash
# openapi-generator-cli generate --generator-name javascript --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml --output _systema/cache/test-client-javascript
#
# openapi-generator-cli validate --input-spec https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.yaml
# openapi-generator-cli validate --input-spec api/BR/portais-ckan-brasil/por/openapi.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# FILE: graphql-exportandum.sh
#
# USAGE: ./systema/programma/graphql-exportandum.sh
# USAGE: ./_systema/programma/graphql-exportandum.sh
#
# DESCRIPTION: Trivia:
# - "OpenAPI"
Expand All @@ -29,8 +29,8 @@

# THE graphql-exportandum.sh IS AN DRAFT!

# graphdoc --schema-file schema/testum/testum.graphql --output systema/cache/testum-graphql-1/ --force
# graphdoc --schema-file api/UN/reliefweb/eng/graphql-schema/openapi2graphql/api/countries_api.graphql --output systema/cache/testum-reliefweb-countries_api/ --force
# graphdoc --schema-file schema/testum/testum.graphql --output _systema/cache/testum-graphql-1/ --force
# graphdoc --schema-file api/UN/reliefweb/eng/graphql-schema/openapi2graphql/api/countries_api.graphql --output _systema/cache/testum-reliefweb-countries_api/ --force
# Error: ✗ Must provide schema definition with query type or a type named Query.

graphdoc --schema-file schema/iso/iso639-3/eng/iso639-3.graphql --output schema/iso/iso639-3/eng/graphql-doc --force
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# FILE: jsonschema-exportandum.sh
#
# USAGE: ./systema/programma/jsonschema-exportandum.sh
# USAGE: ./_systema/programma/jsonschema-exportandum.sh
#
# DESCRIPTION: Trivia:
# - "OpenAPI"
Expand Down Expand Up @@ -32,6 +32,6 @@

# THE jsonschema-exportandum.sh IS AN DRAFT!

# generate-schema-doc schema/testum/testum.schema.json systema/cache/testum-json-schema-1/index.html
# generate-schema-doc schema/testum/testum.schema.json _systema/cache/testum-json-schema-1/index.html

exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# FILE: openapi-exportandum.sh
#
# USAGE: ./systema/programma/openapi-exportandum.sh
# USAGE: ./_systema/programma/openapi-exportandum.sh
#
# DESCRIPTION: Trivia:
# - "OpenAPI"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# FILE: openapi-validum.sh
#
# USAGE: ./systema/programma/openapi-validum.sh
# USAGE: ./_systema/programma/openapi-validum.sh
#
# DESCRIPTION: Do valitation of openapi.yaml files. Useful to find
# errors before trying to export to new formats.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9c8f1c1

Please sign in to comment.