Skip to content

Commit

Permalink
oss
Browse files Browse the repository at this point in the history
  • Loading branch information
cyborg-ts committed May 20, 2024
0 parents commit 0a9de13
Show file tree
Hide file tree
Showing 153 changed files with 7,547 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: ci
on:
- push
- pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: mikefarah/[email protected]
- run: git submodule update --init
- run: COLOR=1 ./make.sh
env:
GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }}
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
signed:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: git submodule update --init
- run: COLOR=1 ./ci/sub/bin/ensure_signed.sh
env:
GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }}
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "ci/sub"]
path = ci/sub
url = https://github.com/terrastruct/ci
44 changes: 44 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Contributing a diagram

Whether you'd like to promote your content or just share a resource and help the
community, your contribution is much appreciated.

To do so is very simple! But in order for the website generator to pick up your diagram,
it must follow a straightforward format:

1. Create a directory under `diagrams/[year]/[month]/[day]/[name]`. That is the date you
are submitting it. Choose a short, descriptive name. Hyphenate it if multiple words.
2. Create a `diagram.yml` and fill out the template below.
3. Add referenced diagram images, e.g. `1.png`. The extension does not matter, so long as
you reference it in `diagram.yml` correctly.
4. Once a pull request is opened, it will be promptly reviewed and show up on the website
within 24 hours of merging.

## `diagram.yml` template

```yaml
schema-version: 0.1

# Required
name: "Green eggs and ham"
images:
- 1.png
attribution: "https://en.wikipedia.org/wiki/Green_Eggs_and_Ham"
tags:
- eggs

# Optional
author: Dr. Seuss
description: |
Green Eggs and Ham is a children's book by Dr. Seuss. It was published by the Beginner Books imprint of Random House on August 12, 1960.
```
### Notes
- You may include multiple images if relevant. They will be displayed like a horizontal
gallery.
- Please include the author if possible. Sometimes it's obvious, e.g. blog post authors.
But sometimes a low-effort search is all it takes, e.g. most open-source documentation
have Git commits showing the original committer of the diagram.
- For the description, a few sentences of text around the diagram briefly explaining it is
enough.
Loading

0 comments on commit 0a9de13

Please sign in to comment.