Commit a74b6ec8 authored by Florent Chehab's avatar Florent Chehab

Plantuml support in CI and slight changes

parent d57c17a4
Pipeline #26254 failed with stages
in 24 seconds
stages:
- test
- syntaxe
- doc
- deploy
testing: testing:
stage: test stage: test
image: python:3.6.5-jessie image: python:3.6.5-jessie
...@@ -19,7 +25,7 @@ testing: ...@@ -19,7 +25,7 @@ testing:
- docker - docker
flake8: flake8:
stage: test stage: syntaxe
image: python:3.6.5-jessie image: python:3.6.5-jessie
script: script:
- pip install flake8 - pip install flake8
...@@ -28,12 +34,16 @@ flake8: ...@@ -28,12 +34,16 @@ flake8:
- docker - docker
pages: pages:
stage: deploy stage: doc
image: floawfloaw/plantuml
dependencies: dependencies:
- testing - testing
script: script:
- mkdir .public - mkdir .public
- mv htmlcov/ .public/coverage - mv htmlcov/ .public/coverage
- cd docs/UML
- make all
- cd ../../
- mv docs/ .public/docs - mv docs/ .public/docs
- mv .public public - mv .public public
artifacts: artifacts:
......
generated
\ No newline at end of file
@startuml indi_func @startuml
package AbstractModels #lightgrey{ package AbstractModels #lightgrey{
......
@startuml Architecture @startuml
!include core.pu
!include Core.pu
!include UniversityModules.pu !include UniversityModules.pu
!include CountryModules.pu !include CountryModules.pu
!include AbstractModules.pu !include AbstractModules.pu
!include indi_func.pu !include IndiFunctions.pu
@enduml @enduml
@startuml
package Core { package Core {
' note as notePackageCore ' note as notePackageCore
...@@ -89,4 +91,6 @@ note on link #white ...@@ -89,4 +91,6 @@ note on link #white
note left of UsefullLinks: It will be a dynamic page \n on the website note left of UsefullLinks: It will be a dynamic page \n on the website
} }
' End of Core block ' End of Core block
\ No newline at end of file
@enduml
\ No newline at end of file
@startuml CountryModule @startuml
package CountryModule{ package CountryModule{
abstract class PhotoCopyCountry as "Photo" #red abstract class PhotoCopyCountry as "Photo" #red
......
@startuml indi_func @startuml
package IndividualizedFunctionalities #lightblue{ package IndividualizedFunctionalities #lightblue{
......
TARGET=\
generated/Architecture.svg \
generated/Core.svg \
generated/UniversityModules.svg
generated/CountryModules.svg \
generated/AbstractModules.svg \
generated/IndiFunctions.svg \
all: $(TARGET)
generated/%.svg: %.pu
mkdir -p generated/
plantuml -tsvg -o $(abspath generated/) $<
.PHONY: clean
clean:
rm -rf generated/
@startuml Architecture @startuml
skinparam defaultFontName Inconsolata skinparam defaultFontName Inconsolata
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* [Présentation](/) * [Présentation](/)
* [Installation](installation.md) * [Installation](installation.md)
* [Chargement des données](load.md) * [Chargement des données](load.md)
* [Architecture](architecture.md)
* [API](API.md) * [API](API.md)
* [À propos de cette documentation](this_doc.md) * [À propos de cette documentation](this_doc.md)
* [Contributions](contributions.md) * [Contributions](contributions.md)
\ No newline at end of file
Architecture
===============================
Présentation de l'architecture du backend.
Vue complète :
![Architecture](UML/generated/Architecture.svg)
Vue plus précise :
![Core](UML/generated/Core.svg)
![AbstractModules](UML/generated/UniversityModules.svg)
![Architecture](UML/generated/CountryModules.svg)
![Architecture](UML/generated/AbstractModules.svg)
![Architecture](UML/generated/IndiFunctions.svg)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment