diff --git a/.github/workflows/upgrade-documentation.yml b/.github/workflows/upgrade-documentation.yml index 34d0d67..5316799 100644 --- a/.github/workflows/upgrade-documentation.yml +++ b/.github/workflows/upgrade-documentation.yml @@ -6,7 +6,27 @@ on: - 'releases/*' jobs: + UML-export: + runs-on: ubuntu-latest + environment: + name: UML + steps: + - uses: actions/checkout@v2 + - name: Export UML + uses: docker://rlespinasse/drawio-export:latest + with: + args: -f svg -o ./ docs + - name: git add & commit & upload repo + continue-on-error: true + run: | + git config user.name "$GITHUB_ACTOR" + git config user.email "help@castellanidavide.it" + git add * + git commit -m "Exported UML automatically" + git push https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git -f + upgrade-documentation: + needs: [UML-export] runs-on: ubuntu-latest environment: name: documentation @@ -57,6 +77,11 @@ jobs: if __name__ == "__main__": open("Home.md", "w+").write(str(get_content())) EOF + - name: Class UML file + run: | + cd wiki + echo "## :octocat: Class UML :octocat:" > Class-UML.md + echo "/docs/${{ github.event.repository.name }}-Class-UML.svg)" >> Class-UML.md - name: CHANGELOG file run: | cp repo/docs/CHANGELOG.md wiki/ @@ -170,6 +195,7 @@ jobs: run: | cat wiki/_Header.md > repo/docs/README.md cat wiki/Home.md >> repo/docs/README.md + cat wiki/Class-UML.md >> repo/docs/README.md cat wiki/Directory-Structure.md >> repo/docs/README.md cat wiki/CHANGELOG.md >> repo/docs/README.md cat wiki/Rebuild-the-core-createstructure-locally.md >> repo/docs/README.md diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 8570218..16a3647 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -2,6 +2,7 @@ Repo where there is the docker source to be run by the manager-createstructure - [Changelog](#changelog) + - [[10.01.08] - 2022-03-12](#100108---2022-03-12) - [[10.01.07] - 2022-01-05](#100107---2022-01-05) - [[10.01.06] - 2022-01-05](#100106---2022-01-05) - [[10.01.05] - 2022-01-05](#100105---2022-01-05) @@ -34,6 +35,9 @@ Repo where there is the docker source to be run by the manager-createstructure - [[09.01.01] - 2021-06-19](#090101---2021-06-19) - [Added](#added-4) +## [10.01.08] - 2022-03-12 +- [Added charts automation](https://github.com/createstructure/core-createstructure/issues/7) +- ## [10.01.07] - 2022-01-05 - [Add sponsorship button](https://github.com/createstructure/createstructure.github.io/issues/36) diff --git a/docs/README.md b/docs/README.md index c48747b..e0ea034 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,11 +1,15 @@ # core-createstructure -[](https://github.com/createstructure/core-createstructure/blob/main/docs/LICENSE) +[](https://github.com/createstructure/core-createstructure/blob/UML-beta/docs/LICENSE)   ## Description Repo where there's the source to create the repo(s)  + +## Class UML + + ## Directory structure ``` @@ -39,7 +43,9 @@ Repo where there's the source to create the repo(s) └── docs # documentation ├── CHANGELOG.md ├── LICENSE - └── README.md + ├── README.md + ├── core-createstructure-Class-UML.svg + └── core-createstructure.drawio 6 directories, 24 files ``` @@ -47,6 +53,7 @@ Repo where there's the source to create the repo(s) Repo where there is the docker source to be run by the manager-createstructure - [ Changelog ](#changelog) + - [[10.01.08] - 2022-03-12](#100108---2022-03-12) - [[10.01.07] - 2022-01-05](#100107---2022-01-05) - [[10.01.06] - 2022-01-05](#100106---2022-01-05) - [[10.01.05] - 2022-01-05](#100105---2022-01-05) @@ -79,6 +86,9 @@ Repo where there is the docker source to be run by the manager-createstructure - [[09.01.01] - 2021-06-19](#090101---2021-06-19) - [Added](#added-4) +### [10.01.08] - 2022-03-12 +- [Added charts automation](https://github.com/createstructure/core-createstructure/issues/7) +- ### [10.01.07] - 2022-01-05 - [Add sponsorship button](https://github.com/createstructure/createstructure.github.io/issues/36) diff --git a/docs/core-createstructure-Class-UML.svg b/docs/core-createstructure-Class-UML.svg new file mode 100644 index 0000000..7254379 --- /dev/null +++ b/docs/core-createstructure-Class-UML.svg @@ -0,0 +1,2 @@ + +core+ main(argc:int, argv:char*[]):int- getFile(path.string):stringget template- username:string- token:string- data:json+ GetTemplate(repoInfo:json)+ get():string- hasEnding(original:string, ending:string):bool- ending(original:string, ending:string)+ get(repoInfo:json):stringget upload url- username:string- token:string- data: json+ GetUploadURL(repoInfo:json)+ get():string- hasEnding(original:string, ending:string):bool- ending(original:string, ending:string)+ get(repoInfo:json):stringpriority- settings:json- priority:vector<string>+ Priority(settings:json)+ execute(priorityType:string, id:int)+ execute(settings:json, priorityType:string)+ execute(settings:json, priorityType:string, id:int)repo- data:json- path:string- date:tm*- changes:vector<pair<string, string>>+ Repo(data:json)+ all(data:json)+ download(data:json)+ create(data:json)+ elaborate(data:json)+ upload(data:json)+ remove(data:json)- getDate(pattern:string):string- getChanges():vector<pair<string, string>>- getSpecialChanges():vector<pair<string, string>>- replace(original:string, changes:vector<pair<string, string>>):string- endsWith(value:string, ending:string):bool+ all()+ download()+ create()+ elaborate()+ upload()+ remove()repo info check- required:vector<string>- data:json+ RepoInfoCheck(data:json)+ check():bool+ sanitize():json+ sanitize(data:json):jsonworkload- settings:json- cryptation:Cryptation- attempts:int- ID:int- priority:bool+ Workload(settings:json)+ getWorkload():json+ setDone()+ setter(ID:int, priority:bool)- decodeWorkload(repoID:int):json- getPriority():json- getNormal():json- getNormalRepoInfo():json+ getWorkload(settings:json):json+ setDone(settings:json, ID:int, priority:bool)input check- required: vector<string>- data:json+ Inputcheck(data:json)+ check():bool+ sanitize():json+ sanitize(data:json):jsonlibrerias-createstructurelibrerias-createstructurecryptationcryptationemojiemojiinputsinputsjsonjsonpositivepositiverestrestsleepsleepUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseUseViewer does not support full SVG 1.1 \ No newline at end of file diff --git a/docs/core-createstructure.drawio b/docs/core-createstructure.drawio new file mode 100755 index 0000000..72f5ce5 --- /dev/null +++ b/docs/core-createstructure.drawio @@ -0,0 +1 @@ +7V1bk5s4Gv01XdWZqqTMzcaPbfckm0ln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