瀏覽代碼

Addition of new GIS provider

pull/847/head
AlexGacon 1 年之前
父節點
當前提交
107ad8242f
共有 6 個檔案被更改,包括 23 行新增1 行删除
  1. +1
    -0
      autogen.sh
  2. +4
    -0
      config.py
  3. +12
    -0
      diagrams/gis/__init__.py
  4. 二進制
      resources/gis/server/geoserver.png
  5. +4
    -0
      scripts/resource.py
  6. +2
    -1
      website/sidebars.json

+ 1
- 0
autogen.sh 查看文件

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

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


+ 4
- 0
config.py 查看文件

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

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

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

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


+ 12
- 0
diagrams/gis/__init__.py 查看文件

@@ -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"

二進制
resources/gis/server/geoserver.png 查看文件

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

+ 4
- 0
scripts/resource.py 查看文件

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

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


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




+ 2
- 1
website/sidebars.json 查看文件

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

Loading…
取消
儲存