Browse Source

Addition of new GIS provider

pull/847/head
AlexGacon 1 year ago
parent
commit
107ad8242f
6 changed files with 23 additions and 1 deletions
  1. +1
    -0
      autogen.sh
  2. +4
    -0
      config.py
  3. +12
    -0
      diagrams/gis/__init__.py
  4. BIN
      resources/gis/server/geoserver.png
  5. +4
    -0
      scripts/resource.py
  6. +2
    -1
      website/sidebars.json

+ 1
- 0
autogen.sh View File

@@ -20,6 +20,7 @@ providers=(
"generic" "generic"
"openstack" "openstack"
"outscale" "outscale"
"gis"
) )


if ! [ -x "$(command -v round)" ]; then if ! [ -x "$(command -v round)" ]; then


+ 4
- 0
config.py View File

@@ -29,6 +29,7 @@ PROVIDERS = (
"generic", "generic",
"openstack", "openstack",
"outscale", "outscale",
"gis"
) )


######################### #########################
@@ -59,6 +60,7 @@ FILE_PREFIXES = {
"outscale": (), "outscale": (),
"generic": (), "generic": (),
"openstack": (), "openstack": (),
"gis": (),
} }


######################### #########################
@@ -89,6 +91,7 @@ UPPER_WORDS = {
"openstack": ("rpm", "loci", "nfv", "ec2api"), "openstack": ("rpm", "loci", "nfv", "ec2api"),
"pve": ("pve"), "pve": ("pve"),
"ibm": ("ibm"), "ibm": ("ibm"),
"gis": ("gis"),
} }


TITLE_WORDS = { TITLE_WORDS = {
@@ -408,6 +411,7 @@ ALIASES = {
} }
}, },
"digitalocean": {}, "digitalocean": {},
"gis": {},
"oci": { "oci": {
"compute": { "compute": {
"VM": "VirtualMachine", "VM": "VirtualMachine",


+ 12
- 0
diagrams/gis/__init__.py View File

@@ -0,0 +1,12 @@
"""
GIS provides a set of services for Geographic Information Systems provider.
"""

from diagrams import Node


class _GIS(Node):
_provider = "gis"
_icon_dir = "resources/gis"

fontcolor = "#2d3436"

BIN
resources/gis/server/geoserver.png View File

Before After
Width: 256  |  Height: 256  |  Size: 47 KiB

+ 4
- 0
scripts/resource.py View File

@@ -134,6 +134,9 @@ def cleaner_outscale(f):
def cleaner_openstack(f): def cleaner_openstack(f):
return f.lower() return f.lower()


def cleaner_gis(f):
return f.lower()



cleaners = { cleaners = {
"onprem": cleaner_onprem, "onprem": cleaner_onprem,
@@ -152,6 +155,7 @@ cleaners = {
"outscale": cleaner_outscale, "outscale": cleaner_outscale,
"generic": cleaner_generic, "generic": cleaner_generic,
"openstack": cleaner_openstack, "openstack": cleaner_openstack,
"gis": cleaner_gis,
} }






+ 2
- 1
website/sidebars.json View File

@@ -28,7 +28,8 @@
"nodes/programming", "nodes/programming",
"nodes/saas", "nodes/saas",
"nodes/c4", "nodes/c4",
"nodes/custom"
"nodes/custom",
"nodes/gis"
] ]
} }
} }

Loading…
Cancel
Save