Website Summary Files Commits Branches @commit @diff @stats
path: root / website / README.md
diff options
context:
space:
mode:
Commit3245f1f1404785d92c21eb381c08dee5a4be6bb7 (patch)
Author
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-09-04 09:08:41 +0300
Committer
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-09-04 09:08:41 +0300
Files3c245582fb5a2a9eaf8518f7272c03a6aaa2f635 /website/README.md
IPL-3245f1f1404785d92c21eb381c08dee5a4be6bb7.tar
IPL-3245f1f1404785d92c21eb381c08dee5a4be6bb7.tar.gz
IPL-3245f1f1404785d92c21eb381c08dee5a4be6bb7.zip
Parentae12c0a482298e4da9b816137ceb6131c7d4b9e4 (diff)
Moved site to website folder
1 files changed, 51 insertions, 0 deletions
-rw-r--r--website/README.md51
diff --git a/website/README.md b/website/README.md
new file mode 100644
index 0000000..50bb481
--- /dev/null
+++ b/website/README.md
@@ -0,0 +1,51 @@
+# Implementation of Programming Languages
+
+This is the code of the website of a course on implementing a programming
+language. The website is hosted at https://sofiacpp.github.io/IPL.
+
+## Working with the website
+
+The website is deployed as GitHub pages from the contents of the gh-pages branch
+of this repository.
+
+
+### Requirements
+
+- Git and Git-Bash on Windows
+- [hugo](https://gohugo.io)
+
+### Checking out the code
+
+Simply clone this repository.
+
+### Setting up the clone
+
+1. Make sure that `git` and `hugo` are in the path
+2. Add the gh-pages as a *git worktree* under the public folder
+
+ git worktree add public gh-pages
+
+### Creating new content
+
+#### Creating new posts
+
+The normal hugo way of creating new posts applies
+
+ hugo new content/posts/post.md
+ hugo new content/page/page.md
+
+Creating new slides requires using a different template. You can use the
+*content/slides* as boilerplate.
+
+ cp -R content/slides content/myslides
+ edit content/myslides/_index.md
+
+### Publishing changes
+
+1. Make any changes to the content and **COMMIT**
+2. Run the publish.sh script
+
+ sh publish.sh
+
+ It will generate the new version inside the *public* folder, commit and push
+ it.