瀏覽代碼

Add programming languages and frameworks (#112)

* Add programming languages and frameworks.

* Remove accidentally committed .swp file.

* Added periods to the end of sentences.
pull/149/head
Taylor Reece 4 年之前
committed by GitHub
父節點
當前提交
cf0141af45
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 40 個文件被更改,包括 220 次插入7 次删除
  1. +7
    -1
      .gitignore
  2. +15
    -1
      CONTRIBUTING.md
  3. +3
    -1
      autogen.sh
  4. +2
    -1
      config.py
  5. +12
    -0
      diagrams/programming/__init__.py
  6. +55
    -0
      diagrams/programming/framework.py
  7. +79
    -0
      diagrams/programming/language.py
  8. +40
    -0
      docs/nodes/programming.md
  9. 二進制
      resources/programming/framework/angular.png
  10. 二進制
      resources/programming/framework/backbone.png
  11. 二進制
      resources/programming/framework/django.png
  12. 二進制
      resources/programming/framework/ember.png
  13. 二進制
      resources/programming/framework/flask.png
  14. 二進制
      resources/programming/framework/flutter.png
  15. 二進制
      resources/programming/framework/laravel.png
  16. 二進制
      resources/programming/framework/rails.png
  17. 二進制
      resources/programming/framework/react.png
  18. 二進制
      resources/programming/framework/spring.png
  19. 二進制
      resources/programming/framework/vue.png
  20. 二進制
      resources/programming/language/bash.png
  21. 二進制
      resources/programming/language/c.png
  22. 二進制
      resources/programming/language/cpp.png
  23. 二進制
      resources/programming/language/csharp.png
  24. 二進制
      resources/programming/language/dart.png
  25. 二進制
      resources/programming/language/go.png
  26. 二進制
      resources/programming/language/java.png
  27. 二進制
      resources/programming/language/javascript.png
  28. 二進制
      resources/programming/language/kotlin.png
  29. 二進制
      resources/programming/language/matlab.png
  30. 二進制
      resources/programming/language/nodejs.png
  31. 二進制
      resources/programming/language/php.png
  32. 二進制
      resources/programming/language/python.png
  33. 二進制
      resources/programming/language/r.png
  34. 二進制
      resources/programming/language/ruby.png
  35. 二進制
      resources/programming/language/swift.png
  36. 二進制
      resources/programming/language/typescript.png
  37. +1
    -1
      scripts/generate.py
  38. +3
    -0
      website/i18n/en.json
  39. +1
    -1
      website/pages/en/index.js
  40. +2
    -1
      website/sidebars.json

+ 7
- 1
.gitignore 查看文件

@@ -22,4 +22,10 @@ node_modules
main.py

# trash
.DS_Store
.DS_Store

# Website uses yarn; ignore npm package-lock.json
website/package-lock.json

# Ignore .swp files
.swp

+ 15
- 1
CONTRIBUTING.md 查看文件

@@ -1,6 +1,6 @@
# Contribution Guide

You shouldn't edit the node class files (all files under `diagram` directory) by
You shouldn't edit the node class files (all files under `diagrams/` directory) by
yourself.

## Resources
@@ -55,3 +55,17 @@ Then just run the `./autogen.sh` to generate the added or updated aliases.
```shell
python -m unittest tests/*.py -v
```

## Testing changes to the website

The [Docusaurus](https://docusaurus.io/)-based documentation website can be run by installing dependencies, then simply running `npm run start`.

```bash
cd website/
npm i
npm run start
```

The website will be available on [http://localhost:3000](http://localhost:3000).

Edit files in `website/` and `docs/` respectively to edit documentation.

+ 3
- 1
autogen.sh 查看文件

@@ -1,8 +1,10 @@
#!/bin/bash
set -e

app_root_dir="diagrams"

# NOTE: azure icon set is not latest version
providers=("onprem" "aws" "azure" "gcp" "k8s" "alibabacloud" "oci")
providers=("onprem" "aws" "azure" "gcp" "k8s" "alibabacloud" "oci" "programming")

if ! [ -x "$(command -v round)" ]; then
echo 'round is not installed'


+ 2
- 1
config.py 查看文件

@@ -11,7 +11,7 @@ DIR_APP_ROOT = "diagrams"
DIR_RESOURCE = "resources"
DIR_TEMPLATE = "templates"

PROVIDERS = ("base", "onprem", "aws", "azure", "gcp", "k8s", "alibabacloud", "oci")
PROVIDERS = ("base", "onprem", "aws", "azure", "gcp", "k8s", "alibabacloud", "oci", "programming")

#########################
# Resource Processing #
@@ -32,6 +32,7 @@ FILE_PREFIXES = {
"k8s": (),
"alibabacloud": (),
"oci": ("OCI-",),
"programming": (),
}

#########################


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

@@ -0,0 +1,12 @@
"""
Programming provides a set of programming languages and frameworks.
"""

from diagrams import Node


class _Programming(Node):
_provider = "programming"
_icon_dir = "resources/programming"

fontcolor = "#ffffff"

+ 55
- 0
diagrams/programming/framework.py 查看文件

@@ -0,0 +1,55 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _Programming


class _Framework(_Programming):
_type = "language"
_icon_dir = "resources/programming/framework"


class Angular(_Framework):
_icon = "angular.png"


class Backbone(_Framework):
_icon = "backbone.png"


class Django(_Framework):
_icon = "django.png"


class Ember(_Framework):
_icon = "ember.png"


class Flask(_Framework):
_icon = "flask.png"


class Flutter(_Framework):
_icon = "flutter.png"


class Laravel(_Framework):
_icon = "laravel.png"


class Rails(_Framework):
_icon = "rails.png"


class React(_Framework):
_icon = "react.png"


class Spring(_Framework):
_icon = "spring.png"


class Vue(_Framework):
_icon = "vue.png"


# Aliases

+ 79
- 0
diagrams/programming/language.py 查看文件

@@ -0,0 +1,79 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _Programming


class _Language(_Programming):
_type = "language"
_icon_dir = "resources/programming/language"


class Bash(_Language):
_icon = "bash.png"


class C(_Language):
_icon = "c.png"


class Csharp(_Language):
_icon = "csharp.png"


class Cpp(_Language):
_icon = "cpp.png"


class Dart(_Language):
_icon = "dart.png"


class Go(_Language):
_icon = "go.png"


class Java(_Language):
_icon = "java.png"


class Javascript(_Language):
_icon = "javascript.png"


class Kotlin(_Language):
_icon = "kotlin.png"


class Matlab(_Language):
_icon = "matlab.png"


class Nodejs(_Language):
_icon = "nodejs.png"


class PHP(_Language):
_icon = "php.png"


class Python(_Language):
_icon = "python.png"


class R(_Language):
_icon = "r.png"


class Ruby(_Language):
_icon = "ruby.png"


class Swift(_Language):
_icon = "swift.png"


class Typescript(_Language):
_icon = "typescript.png"


# Aliases

+ 40
- 0
docs/nodes/programming.md 查看文件

@@ -0,0 +1,40 @@
---
id: programming
title: Programming
---

Node classes list of programming languages, runtimes and frameworks

## programming.language

- **diagrams.programming.language.Bash**
- **diagrams.programming.language.C**
- **diagrams.programming.language.Csharp**
- **diagrams.programming.language.Cpp**
- **diagrams.programming.language.Dart**
- **diagrams.programming.language.Go**
- **diagrams.programming.language.Java**
- **diagrams.programming.language.Javascript**
- **diagrams.programming.language.Kotlin**
- **diagrams.programming.language.Matlab**
- **diagrams.programming.language.Nodejs**
- **diagrams.programming.language.PHP**
- **diagrams.programming.language.Python**
- **diagrams.programming.language.R**
- **diagrams.programming.language.Ruby**
- **diagrams.programming.language.Swift**
- **diagrams.programming.language.Typescript**

## programming.framework

- **diagrams.programming.framework.Angular**
- **diagrams.programming.framework.Backbone**
- **diagrams.programming.framework.Django**
- **diagrams.programming.framework.Ember**
- **diagrams.programming.framework.Flask**
- **diagrams.programming.framework.Flutter**
- **diagrams.programming.framework.Laravel**
- **diagrams.programming.framework.Rails**
- **diagrams.programming.framework.React**
- **diagrams.programming.framework.Spring**
- **diagrams.programming.framework.Vue**

二進制
resources/programming/framework/angular.png 查看文件

Before After
Width: 256  |  Height: 270  |  Size: 18 KiB

二進制
resources/programming/framework/backbone.png 查看文件

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

二進制
resources/programming/framework/django.png 查看文件

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

二進制
resources/programming/framework/ember.png 查看文件

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

二進制
resources/programming/framework/flask.png 查看文件

Before After
Width: 256  |  Height: 328  |  Size: 22 KiB

二進制
resources/programming/framework/flutter.png 查看文件

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

二進制
resources/programming/framework/laravel.png 查看文件

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

二進制
resources/programming/framework/rails.png 查看文件

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

二進制
resources/programming/framework/react.png 查看文件

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

二進制
resources/programming/framework/spring.png 查看文件

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

二進制
resources/programming/framework/vue.png 查看文件

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

二進制
resources/programming/language/bash.png 查看文件

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

二進制
resources/programming/language/c.png 查看文件

Before After
Width: 256  |  Height: 283  |  Size: 17 KiB

二進制
resources/programming/language/cpp.png 查看文件

Before After
Width: 256  |  Height: 288  |  Size: 17 KiB

二進制
resources/programming/language/csharp.png 查看文件

Before After
Width: 256  |  Height: 288  |  Size: 30 KiB

二進制
resources/programming/language/dart.png 查看文件

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

二進制
resources/programming/language/go.png 查看文件

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

二進制
resources/programming/language/java.png 查看文件

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

二進制
resources/programming/language/javascript.png 查看文件

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

二進制
resources/programming/language/kotlin.png 查看文件

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

二進制
resources/programming/language/matlab.png 查看文件

Before After
Width: 256  |  Height: 230  |  Size: 26 KiB

二進制
resources/programming/language/nodejs.png 查看文件

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

二進制
resources/programming/language/php.png 查看文件

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

二進制
resources/programming/language/python.png 查看文件

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

二進制
resources/programming/language/r.png 查看文件

Before After
Width: 256  |  Height: 198  |  Size: 16 KiB

二進制
resources/programming/language/ruby.png 查看文件

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

二進制
resources/programming/language/swift.png 查看文件

Before After
Width: 256  |  Height: 230  |  Size: 14 KiB

二進制
resources/programming/language/typescript.png 查看文件

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

+ 1
- 1
scripts/generate.py 查看文件

@@ -7,7 +7,7 @@ from jinja2 import Environment, FileSystemLoader, Template
import config as cfg
from . import app_root_dir, doc_root_dir, resource_dir, template_dir

_usage = "Usage: generate.py <onprem|aws|gcp|azure|k8s|alibabacloud|oci>"
_usage = "Usage: generate.py <onprem|aws|gcp|azure|k8s|alibabacloud|oci|programming>"


def load_tmpl(tmpl: str) -> Template:


+ 3
- 0
website/i18n/en.json 查看文件

@@ -43,6 +43,9 @@
},
"nodes/onprem": {
"title": "OnPrem"
},
"nodes/programming": {
"title": "Programming"
}
},
"links": {


+ 1
- 1
website/pages/en/index.js 查看文件

@@ -106,7 +106,7 @@ class Index extends React.Component {
`Diagram as Code` allows you to **track** the architecture diagram changes in any **version control** system.
</MarkdownBlock>
<MarkdownBlock>
Diagrams currently supports six major providers: `AWS`, `Azure`, `GCP`, `Kubernetes`, `Alibaba Cloud` and `Oracle Cloud`. It now also supports `On-Premise` nodes.
Diagrams currently supports six major providers: `AWS`, `Azure`, `GCP`, `Kubernetes`, `Alibaba Cloud` and `Oracle Cloud`. It now also supports `On-Premise` nodes as well as `Programming Languages` and `Frameworks`.
</MarkdownBlock>
</div>
);


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

@@ -17,7 +17,8 @@
"nodes/gcp",
"nodes/k8s",
"nodes/alibabacloud",
"nodes/oci"
"nodes/oci",
"nodes/programming"
]
}
}

Loading…
取消
儲存