You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-24Lines changed: 5 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,38 +20,19 @@ Si vous souhaitez développer et construire les notes de cours PSY3018, vous dev
20
20
21
21
- Clonez ce repository
22
22
- Exécutez `pip install -r requirements.txt` (il est recommandé d'effectuer cette commande dans un environnement virtuel).
23
-
- (Recommendé) Effacez le répertoire `_build/`
24
-
- On exporte l'URL de base à utiliser: `export BASE_URL="https://methodes-cogneuro.github.io"`
23
+
- Modifier le contenu du livre à partir des fichiers `md`
25
24
- Exécutez les notebooks (uniquement si vous avez changé le code) `jupyter book build --execute`
26
-
-Générer le site en html `jupyter book build --html`
25
+
-Si vous souhaitez avoir un apercu du site web: `jupyter book start`
27
26
28
27
29
-
Une version statique html du livre sera générée dans `_build/html/`.
30
-
31
28
### Hosting the book
32
-
33
-
The html version of the book is hosted on the `gh-pages` branch of this repo. Navigate to your local build and run,
34
-
-`ghp-import -n -p -f _build/html`
35
-
36
-
This will automatically push your build to the `gh-pages` branch. More information on this hosting process can be found [here](https://jupyterbook.org/publish/gh-pages.html#manually-host-your-book-with-github-pages).
37
-
38
-
### Generating pdf
39
-
40
-
The support for pdf generation is experimental with jupyter book, and the output is not perfect. Currently the process looks like:
41
-
* install the depencies described in the section "Building a pdf with latex" in the [jb docs](https://jupyterbook.org/advanced/pdf.html).
42
-
* build latex with individual pages: `jb build methodes_neurocog/ --builder pdflatex --individualpages`. This produces warnings (skip them) and errors. If you ever get stuck in the terminal, leaving the weird latex compilation environment is achieved by pressing `X` (you're welcome).
* go in the build directory `cd methodes_neurocog/_build/latex`
45
-
* edit manually the `tex` file of the chapter. Replace all `\chapter` by `\section` and add a proper `\chapter` at the beginning. You can also search `Content` and replace by `Table des matières`. I have tried to switch the whole doc in French but without success so far.
46
-
* before adding the chapter title, add the following lines: `\setcounter{chapter}{n} \addtocounter{chapter}{-1}`, where `n` is the number of the chapter.
47
-
* Compile a chapter, e.g. `xelatex cartes_cerebrales.tex`
48
-
* the resulting pdf is mega-huge. So shrink it with `gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH -sOutputFile=notes_cours_cartes_cerebrales.pdf -dPDFSETTINGS=/ebook cartes_cerebrales.pdf`
49
-
* Voilà 🎉 🎉 🎉
29
+
- Ouvrir une pull request pour faire des changements.
30
+
- Une fois les changements importés dans `main` une action github va construire le livre automatiquement.
50
31
51
32
## Contributors
52
33
53
34
We welcome and recognize all contributions. You can see a list of current contributors in the [contributors tab](https://github.com/psy3018/notes_cours_psy3018/graphs/contributors).
54
35
55
36
## Credits
56
37
57
-
This project is created using the excellent open source [Jupyter Book project](https://jupyterbook.org/) and the [executablebooks/cookiecutter-jupyter-book template](https://github.com/executablebooks/cookiecutter-jupyter-book). Further credits for the book can be found in the book itself.
38
+
This project is created using the excellent open source [Jupyter Book project](https://jupyterbook.org/). Further credits for the contributors of the book can be found in the book itself.
0 commit comments