Slides for my DH course
.
├── media # all the non-online media displayed on the slides
├──── HumDig00 # one subfolder for each deck of slides
├──── HumDig01
├──── etc
├── HumDig_00.md # an *.md file for each deck of slides
├── HumDig_01.md
├── etc.md
├── LICENSE
├── README.md
├── show-slides.sh # script to ease firing up the decks of slides on a browser (Linux)
|── show-slides.ps1 # same as above, but for Windows computers
├── slides-cheatsheet.txt # slides layout cheatsheet. Copy-paste ready
└── slides.html # stylesheet to make the slides look decent
You can open any markdown file on a new tab. However, if you'd rather run the decks of slides locally on your browser, download this repository and follow the instructions below.
- Open a terminal window from the folder where
slides.htmland*.mdfiles are. - Type
python3 -m http.server 8000; pressEnter. - Point a new browser tab to
http://localhost:8000/slides.html?slides=FILENAME.md; replacingFILENAME.mdwith the filename of the deck of slides to display (HumDig_00.md, for instance).
When done, close the tab and stop the process by returning to the terminal window and pressing Ctrl + C. You may close the terminal window then.
- Open a terminal window from the folder where
slides.html,*.md, andshow-slides.shfiles are. - Run
./show-slides.sh FILENAME.md; replacingFILENAME.mdwith the filename of the deck of slides to display (HumDig_00.md, for instance). Notice there's a space between the./command and the filename. - Enjoy. You can open several
.mdfiles from the same terminal, but don't forget to shut down the server when done.
The server can be shut running ps aux | grep http.server on the terminal window, and killing the process named python3 -m http.server 8000 with th command kill and the process ID.
First you should have Python installed. If you don't, get it at https://www.python.org/downloads/. During installation, check a box or answer Ywhen prompted to something similar to Add Python to PATH.
Then:
- Open the folder in File Explorer and click on the address bar at the top of the window.
- type
cmd. Press enter. A command prompt window will open. - Type
python -m http.server 8000; pressEnter. - Point a new browser tab to
http://localhost:8000/slides.html?slides=FILENAME.md; replacingFILENAME.mdwith the filename of the deck of slides to display (HumDig_00.md, for instance) and enjoy.
When done, go back to the command prompt window and shut the server by typing Ctrl + C. If prompted, confirm with Y.
- Right click the folder where the
slides.htmland*.mdfiles are. - Select
Open with Terminal. A Windows PowerShell screen will pop up. - Type
powershell.exe -ExecutionPolicy Bypass -File .\show-slides.ps1 FILENAME.md; replacingFILENAME.mdwith the filename of the deck of slides to display (HumDig_00.md, for instance). - Enjoy.
When done, shut down the server running Stop-Process -Id (Get-NetTCPConnection -LocalPort 8000).OwningProcess on the same PowerShell window.
These slides are strongly based and inspired in other people's work, mainly (in alphabetical order):
- Nicola Carboni
- Johanna Drucker
- Simon Gabay
- Adrien Jeanrenaud
- Xingyu Long
- Daniel Servos
- and many others that I'll add as I move forward