소스 검색

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
No known key found for this signature in database GPG 키 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. BIN
      resources/programming/framework/angular.png
  10. BIN
      resources/programming/framework/backbone.png
  11. BIN
      resources/programming/framework/django.png
  12. BIN
      resources/programming/framework/ember.png
  13. BIN
      resources/programming/framework/flask.png
  14. BIN
      resources/programming/framework/flutter.png
  15. BIN
      resources/programming/framework/laravel.png
  16. BIN
      resources/programming/framework/rails.png
  17. BIN
      resources/programming/framework/react.png
  18. BIN
      resources/programming/framework/spring.png
  19. BIN
      resources/programming/framework/vue.png
  20. BIN
      resources/programming/language/bash.png
  21. BIN
      resources/programming/language/c.png
  22. BIN
      resources/programming/language/cpp.png
  23. BIN
      resources/programming/language/csharp.png
  24. BIN
      resources/programming/language/dart.png
  25. BIN
      resources/programming/language/go.png
  26. BIN
      resources/programming/language/java.png
  27. BIN
      resources/programming/language/javascript.png
  28. BIN
      resources/programming/language/kotlin.png
  29. BIN
      resources/programming/language/matlab.png
  30. BIN
      resources/programming/language/nodejs.png
  31. BIN
      resources/programming/language/php.png
  32. BIN
      resources/programming/language/python.png
  33. BIN
      resources/programming/language/r.png
  34. BIN
      resources/programming/language/ruby.png
  35. BIN
      resources/programming/language/swift.png
  36. BIN
      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**

BIN
resources/programming/framework/angular.png 파일 보기

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

BIN
resources/programming/framework/backbone.png 파일 보기

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

BIN
resources/programming/framework/django.png 파일 보기

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

BIN
resources/programming/framework/ember.png 파일 보기

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

BIN
resources/programming/framework/flask.png 파일 보기

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

BIN
resources/programming/framework/flutter.png 파일 보기

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

BIN
resources/programming/framework/laravel.png 파일 보기

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

BIN
resources/programming/framework/rails.png 파일 보기

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

BIN
resources/programming/framework/react.png 파일 보기

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

BIN
resources/programming/framework/spring.png 파일 보기

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

BIN
resources/programming/framework/vue.png 파일 보기

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

BIN
resources/programming/language/bash.png 파일 보기

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

BIN
resources/programming/language/c.png 파일 보기

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

BIN
resources/programming/language/cpp.png 파일 보기

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

BIN
resources/programming/language/csharp.png 파일 보기

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

BIN
resources/programming/language/dart.png 파일 보기

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

BIN
resources/programming/language/go.png 파일 보기

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

BIN
resources/programming/language/java.png 파일 보기

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

BIN
resources/programming/language/javascript.png 파일 보기

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

BIN
resources/programming/language/kotlin.png 파일 보기

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

BIN
resources/programming/language/matlab.png 파일 보기

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

BIN
resources/programming/language/nodejs.png 파일 보기

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

BIN
resources/programming/language/php.png 파일 보기

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

BIN
resources/programming/language/python.png 파일 보기

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

BIN
resources/programming/language/r.png 파일 보기

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

BIN
resources/programming/language/ruby.png 파일 보기

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

BIN
resources/programming/language/swift.png 파일 보기

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

BIN
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"
]
}
}

불러오는 중...
취소
저장