-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yves Chevallier
committed
Aug 2, 2020
1 parent
0869136
commit edaf819
Showing
19 changed files
with
269 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.{yaml,yml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.py] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[Makefile] | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
create: | ||
tags: | ||
|
||
jobs: | ||
build: | ||
name: Build Project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
with: | ||
submodules: true | ||
- name: Build Docker Image | ||
run: make pull | ||
- name: Build | ||
run: make | ||
- name: Upload handout | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: pdf | ||
path: | | ||
_build/latex/main.pdf | ||
if-no-files-found: error | ||
- name: Upload man-page | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: man | ||
path: | | ||
_build/man/info.1 | ||
if-no-files-found: error | ||
- name: Upload html | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: html | ||
path: | | ||
_build/html | ||
if-no-files-found: error | ||
deploy: | ||
name: Deploy on GH-Pages | ||
needs: build | ||
runs-on: ubuntu-latest | ||
if: contains(github.ref, 'master') | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v1 | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
path: html | ||
name: html | ||
- run: ls -al html | ||
- name: Deploy to GitHub Pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: html | ||
release: | ||
name: Create Release | ||
needs: build | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
steps: | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: man | ||
path: dist/ | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: pdf | ||
path: dist/ | ||
- name: Upload Handout | ||
id: upload-pdf-handout | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
asset_path: dist/main.pdf | ||
asset_name: handout.pdf | ||
asset_content_type: application/pdf | ||
- name: Upload Manpage | ||
id: upload-manpage | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
asset_path: dist/info.1 | ||
asset_name: info.1 | ||
asset_content_type: text/plain |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,60 @@ | ||
# Polycopié d'informatique | ||
|
||
[![Build Status](https://travis-ci.org/heig-tin-info/info-handout.svg?branch=master)](https://travis-ci.org/heig-tin-info/info-handout) | ||
|
||
Ce référentiel contient le polycopié d'informatique 1 et 2 disponible en formats: | ||
|
||
- PDF (voir [releases](https://github.com/heig-tin-info/info-handout/releases)) | ||
- HTML (https://heig-tin-info.github.io/handout/) | ||
- Manpage (voir [releases](https://github.com/heig-tin-info/info-handout/releases)) | ||
|
||
## Install | ||
|
||
```bash | ||
git clone https://github.com/heig-vd-tin/info-handout.git | ||
cd info-handout | ||
git submodule init | ||
git submodulee update | ||
make html | ||
make pdf | ||
``` | ||
|
||
Alternativement vous pouvez utiliser Docker et suivre le contenu de `.travis.yml`. | ||
|
||
## Intégration continue | ||
|
||
Les nouvelles releases sont automatiquement générées par Travis CI: | ||
|
||
- A chaque nouveau tag, les version PDF et MAN sont générées | ||
- A chaque commit sur la branche `master` une version HTML est générée | ||
|
||
## Build | ||
|
||
Make sure you have `sphinx` and the HTML theme installed `sphinx-heigvd-theme`. | ||
|
||
```bash | ||
sudo apt-get install -y librsvg2-bin | ||
sudo apt-get install -y python3 python3-pip python3-sphinx | ||
|
||
sudo pip3 install sphinx-heigvd-theme | ||
sudo pip3 install sphinxcontrib-svg2pdfconverter | ||
``` | ||
|
||
Then if you would like to generate the PDF version you need LaTeX as well. | ||
|
||
```bash | ||
sudo apt-get install librsvg2-bin # For conversion from svg to pdf | ||
|
||
sudo apt-get install texlive-latex-base | ||
sudo apt-get install texlive-fonts-recommended | ||
sudo apt-get install texlive-fonts-extra | ||
sudo apt-get install texlive-latex-extra | ||
|
||
sudo apt-get install latexmk | ||
|
||
sudo pip install sphinx | ||
sudo pip install sphinxcontrib-svg2pdfconverter | ||
``` | ||
# Polycopié d'informatique | ||
|
||
![.github/workflows/ci.yml](https://github.com/heig-tin-info/handout/workflows/.github/workflows/ci.yml/badge.svg?branch=master) | ||
|
||
![version](https://img.shields.io/github/v/release/heig-tin-info/handout) | ||
![downloads](https://img.shields.io/github/downloads/heig-tin-info/handout/latest/total) | ||
|
||
Ce référentiel contient le polycopié d'informatique 1 et 2 disponible en formats: | ||
|
||
- PDF (voir [releases](https://github.com/heig-tin-info/info-handout/releases)) | ||
- HTML (https://heig-tin-info.github.io/handout/) | ||
- Manpage (voir [releases](https://github.com/heig-tin-info/info-handout/releases)) | ||
|
||
## Install | ||
|
||
```bash | ||
git clone https://github.com/heig-vd-tin/info-handout.git | ||
cd info-handout | ||
git submodule init | ||
git submodulee update | ||
make html | ||
make pdf | ||
``` | ||
|
||
Alternativement vous pouvez utiliser Docker et suivre le contenu de `.travis.yml`. | ||
|
||
## Intégration continue | ||
|
||
Les nouvelles releases sont automatiquement générées par Travis CI: | ||
|
||
- A chaque nouveau tag, les version PDF et MAN sont générées | ||
- A chaque commit sur la branche `master` une version HTML est générée | ||
|
||
## Build | ||
|
||
Make sure you have `sphinx` and the HTML theme installed `sphinx-heigvd-theme`. | ||
|
||
```bash | ||
sudo apt-get install -y librsvg2-bin | ||
sudo apt-get install -y python3 python3-pip python3-sphinx | ||
|
||
sudo pip3 install sphinx-heigvd-theme | ||
sudo pip3 install sphinxcontrib-svg2pdfconverter | ||
``` | ||
|
||
Then if you would like to generate the PDF version you need LaTeX as well. | ||
|
||
```bash | ||
sudo apt-get install librsvg2-bin # For conversion from svg to pdf | ||
|
||
sudo apt-get install texlive-latex-base | ||
sudo apt-get install texlive-fonts-recommended | ||
sudo apt-get install texlive-fonts-extra | ||
sudo apt-get install texlive-latex-extra | ||
|
||
sudo apt-get install latexmk | ||
|
||
sudo pip install sphinx | ||
sudo pip install sphinxcontrib-svg2pdfconverter | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.