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
To update the `publications.md` page, go to folder `scholar/` and run script `main.py`:
27
+
```
28
+
$ cd scholar/
29
+
$ ./main.py
30
+
```
31
+
32
+
This will download the corresponding publication infos, store them as YAML files in folder `scholar/publications/` and update the `publications.md` markdown page.
33
+
To run the script, it needs following python modules:
34
+
```
35
+
$ pip install scholarly sphinx-rtd-theme
36
+
$ pip install pyyaml fp free-proxy
37
+
```
23
38
24
39
25
40
### Testing your changes locally
26
-
*To test your changes locally, use Ruby, Jekyll, and Bundler. You can install these using
41
+
To test your changes locally, use Ruby, Jekyll, and Bundler. You can install these using:
27
42
```
28
43
$ gem install jekyll bundler
29
44
```
30
45
This may not work on Mac. If so, then a work-around is given below. Next we need to run the following command:
31
-
32
46
```
33
47
$ bundle install
34
48
```
35
49
36
-
Once you have got Jekyll and Bundler installed, you are now all setup to view any changes you make to the website. Each time you want to view your most recent version run:
50
+
Once you have got Jekyll and Bundler installed, you are now all setup to view any changes you make to the website.
51
+
Each time you want to view your most recent version run:
37
52
```
38
53
$ bundle exec jekyll serve
39
54
```
40
-
This will generate a server address (```http://127.0.0.1:4000```). Navigate to this server address in your favourite web browser and your newly-updated SPECFEM website should be viewable in all its glory!
55
+
This will generate a server address (`http://127.0.0.1:4000`).
56
+
Navigate to this server address in your favourite web browser and your newly-updated SPECFEM website should be viewable in all its glory!
41
57
42
58
43
59
44
60
45
61
---
46
62
### Installing gems on Mac
47
-
* Macs ship with their own verison of Ruby that you are not able to edit. This can make installing Gems a bit more difficult. An easy work around for this is to first install a separate version of Ruby using [Homebrew](https://brew.sh/):
63
+
Macs ship with their own verison of Ruby that you are not able to edit. This can make installing Gems a bit more difficult.
64
+
An easy work around for this is to first install a separate version of Ruby using [Homebrew](https://brew.sh/):
48
65
```
49
66
$ brew install ruby
50
67
```
51
68
52
-
Now you have your own version of Ruby, you will want to run the command
69
+
Now you have your own version of Ruby, you will want to run the command:
53
70
```
54
71
$ export GEM_HOME="$HOME/.gem"
55
72
```
56
-
and also add this command to your shell configuration (either your ~/.zshrc or ~/.bash_profile depending on the shell you use). Don't forget to make sure these updates to your config file are activated by running ```$ source ~/.zshrc``` or ```$ source ~/.bash-profile```. You should now have a working version of Ruby that you can use to install. Finally we can run our install command
73
+
and also add this command to your shell configuration (either your `~/.zshrc` or `~/.bash_profile` depending on the shell you use).
74
+
Don't forget to make sure these updates to your config file are activated by running `$ source ~/.zshrc` or `$ source ~/.bash-profile`.
75
+
You should now have a working version of Ruby that you can use to install the needed Gems.
0 commit comments