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
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
As a teacher you probably have to cover a vast field of expertise and to keep up with changes in this very field, constantly updating your teaching materials. Most of the time your materials are scattered over a number of formats and platforms, which doesn't exactly make things easier.
3
3
4
4
This project is the attempt to unify all teaching materials using Markdown and Obsidian as an editor while using this site as a reader for the students.
5
-
As a reader for students it has various benefits, such as responsive design allowing the use of a mobile phone when learning, or customizability of the look-and-feel to suit various tastes.
5
+
As a reader for students it has various benefits, such as responsive design allowing the use of a mobile phone when learning, or customization of the look-and-feel to suit various tastes.
6
6
7
7
See a working version of this project, hosted by myself, here:
8
8
https://safelearn.unterrainer.info
@@ -28,6 +28,7 @@ If you'd like to host your own files, you'll have to fork this repository.
28
28
* Generate different views on a document to keep exam-questions, answers and testing-questions together in one document.
29
29
* Full Obsidian-flavor Markdown support
30
30
* Switch between teacher- and student-view
31
+
* Local [WYSIWIG Editor Setup](docs-wysiwig) that allows you to see the changes to your documents instantly.
31
32
### Features for Students
32
33
* Availability
33
34
* Teaching materials are always up-to-date
@@ -85,6 +86,8 @@ So there are some intricacies you should be aware of when working with it and se
85
86
If you'd like to use any other server, set your secret accordingly.
86
87
## Obsidian Language Extensions
87
88
Here you can find the technical intricacies of the Obsidian-specific language extension implemented in this project [docs](docs-obsidian.md).
89
+
## Local WYSIWIG Container
90
+
Start a container running the server, which is exposing a web-page and constantly scanning for changes in your files [here](docs-wysiwig).
88
91
## Permissions
89
92
You can specify who is able to read whole files, or only parts of it.
90
93
Here you can find more information about [permissions](docs-permissions).
Copy file name to clipboardExpand all lines: docs-building.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ To build, there is a Github action in this repository, but in order to configure
28
28
| KEYCLOAK_FILE | The copy-pasted contents of the file you get when you enter your Keycloak-realm as admin -> Client -> Installation -> Keycloak JSON File. |
29
29
| PORT | -> `.env`<br>The port your web-server will be accessible when started later on (for example: `8080`).<br>This variable will be written to a newly generated `.env` file that will reside in the root-directory of the node web-server.<br>So that port is INSIDE this web-servers' docker-image that is created. |
30
30
| WEBSERVER_PORT | This is the EXTERNAL port of the web-server that is created.<br>This port must be unique and accessible on the deployment-machine. |
31
+
| AUTOSCAN | Starts a file-watcher on the markdown-directory on the server so that all changes within that folder will trigger a re-scan of all files available to the server. This only makes sense, if you plan on changing content without re-starting (-building). That would be the case when you're debugging, or if you're running a WYSIWYG docker-container of the server locally. |
31
32
| VPN_OVPN_FILE | The OVPN file of your Open VPN configuration. This is used to reach the deployment-server (target host) to start conversation via SSH. |
32
33
| VPN_PASSWORD | The password of your VPN connection. |
33
34
| VPN_SERVER | The server to call for opening your VPN connection. |
If you'd like to run a local container of this server in order to see changes you make on your files on-the-fly, you've come to the right page.
3
+
4
+
[Back](README.md) to the main page.
5
+
## How to setup your local container
6
+
### Prerequisites
7
+
- Local [Docker](https://docker.com)-installation
8
+
- Some access to the keycloak-server that's being used (may be local, or the standard remote one)
9
+
- Free port `8081` on your local machine (you may change that, but it has to be configured on the keycloak-client as a `valid redirect URL` like `http://localhost:<port>/*`)
10
+
### Installation
11
+
- Clone this repository
12
+
- Copy the contents of the directory `local-wysiwig-container` to your local host
13
+
- Adjust the contents of the `.env` file
14
+
- Adjust the contents of the `keycloak.json` file
15
+
- Run `up.sh` to start your container as a persistent container
| WEBSERVER_PORT | 8081 | The port your local web-server should expose |
21
+
| NEXT_PUBLIC_SERVER_URL |http://localhost:8081| This is important for the keycloak-login process. The port should be the same as in WEBSERVER_PORT. |
22
+
| LOCAL_DEV_MD_DIR | /home/larifari/secureLectures/md | This is the place of the md-directory within the repository you've cloned to your local machine. This is the place where your MD-files live. |
23
+
| NEXT_AUTOSCAN | true | This switch tells the server to watch for changes in your MD-directory and reload all files, when it detects those. |
24
+
### `keycloak.json` File
25
+
This should be self-explanatory for keycloak-users. It's the config file for the keycloak-instance you are using.
0 commit comments