From 99ff2bafcda838ce7c0f2691f612335408c68ec0 Mon Sep 17 00:00:00 2001 From: CHEF-KOCH Date: Sat, 13 Jun 2020 15:51:06 +0200 Subject: [PATCH] .gitignore & .gitattributes Workflows changes --- .gitattributes | 27 +++++++++++++++++++ .github/workflows/makepdfs.yml | 35 ++++++++++++++++--------- .github/workflows/mirror.yml | 36 +++++++++++++++++++------ .gitignore | 48 ++++++++++++++++++++++++++++++++++ docs/template.html | 13 +++++++++ 5 files changed, 139 insertions(+), 20 deletions(-) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 docs/template.html diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..3046525 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,27 @@ +# Linguist overrides +# https://github.com/github/linguist +# This is not a 100% HTML repo, it's an 100% Markdown repo and HTML is only a byproduct. +*.md linguist-vendored=false +*.md linguist-generated=false +*.md linguist-documentation=false +*.md linguist-detectable=true + +Workaround for Git ignoring trailing whitespace in markdown files only +**/*.md text whitespace=-cr-at-eol,-trailing-space + +# Treat unknown files as binary and do NOT do line ending conversions +* binary diff + +# SPECFIC OVERRIDES +LICENSE cleantext +*.gitattributes cleantext +*.gitignore cleantext +*.gitmodules cleantext +*.html cleantext diff=html +*.markdown cleantext +*.md cleantext +*.yml cleantext +*.gpg filter=gpg diff=gpg +*.asc filter=gpg diff=gpg +*.png binary +*.jpg binary \ No newline at end of file diff --git a/.github/workflows/makepdfs.yml b/.github/workflows/makepdfs.yml index bdb9a0f..0a858d3 100644 --- a/.github/workflows/makepdfs.yml +++ b/.github/workflows/makepdfs.yml @@ -1,18 +1,29 @@ -# pdf.yml -# https://github.com/marketplace/actions/create-pdf -# https://github.com/mkrakowitzer/actions-makepdfs/ +# https://github.com/marketplace/actions/create-pdf-and-html on: [push] -name: CreatePDFs +name: Docs to PDF +# This workflow is triggered on pushes to the repository. +on: + push: + branches: + - master jobs: - makepdfs: + converttopdf: + name: Build PDF runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: mkrakowitzer/actions-makepdfs@master - if: github.ref == 'refs/heads/master' - - uses: actions/upload-artifact@v1 - with: - name: platform-architecture-docs - path: tmp + - uses: actions/checkout@v2 + - uses: baileyjm02/markdown-to-pdf@master + with: + input_dir: ./ + output_dir: pdf + #images_dir: docs/images + # for example + #images_path: ./images + # Default is true, can set to false to only get PDF files + build_html: true + - uses: actions/upload-artifact@v1 + with: + name: docs + path: pdfs diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 3d6801b..4f5a873 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -1,10 +1,30 @@ # https://github.com/marketplace/actions/mirror-repository on: [push] - ... - steps: - - uses: actions/checkout@v1 - - uses: spyoungtech/mirror-action@master - with: - REMOTE: 'https://gitlab.com/CHEF-KOCH/Warez.git' - GIT_USERNAME: spyoungtech - GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }} + +name: Mirror + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: + - '**' + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + - uses: actions/checkout@v1 + - name: mirror-repository + uses: spyoungtech/mirror-action@spyoungtech-patch-1 + with: + REMOTE: https://gitlab.com/CHEF-KOCH/Warez.git + GIT_USERNAME: CHEF-KOCH + GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }} + DEBUG: "true" + PUSH_ALL_REFS: "false" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c8c8e43 --- /dev/null +++ b/.gitignore @@ -0,0 +1,48 @@ +# Cache files +.temp/ + +# Exclude folders +.devbots/** +.github/eMail/** +.github/workflows/** + +# VSCode +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for VS Code +.history/ + +# VS +!/.vs/ +/.vs/* +!/.vs/ProjectSettings.json +!/.vs/config/ +!/.vs/config/* + +# Do not touch +!.gitignore +!.gitattributes +!README.md +!Android.md +!Banned.md +!Bulletproof Hosting.md +!CODE_OF_CONDUCT.md +!Cracking Groups.md +!Extensions & Scripts.md +!iOS.md +!LICENSE +!Offline.md +!Open Source Hardware.md +!Proxy.md +!Scene Info.md +!Soft-Ban.md +!Telegram.md +!Tools.md +!Tor.md +!Trusted.md +!Tutorials.md diff --git a/docs/template.html b/docs/template.html new file mode 100644 index 0000000..87d55d6 --- /dev/null +++ b/docs/template.html @@ -0,0 +1,13 @@ + + + +{{{title}}} + + + + +{{{content}}} + +