Skip to content

Commit 25dbf54

Browse files
Merge pull request #15 from TidbitSoftware/main
CHG: Updated local dev server install instructions; fix for syntax highlighting
2 parents fcf1fb1 + 70ed405 commit 25dbf54

File tree

4 files changed

+46
-32
lines changed

4 files changed

+46
-32
lines changed

docs/README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,25 @@ It can take up to 10 minutes for changes to your site to publish after you push
1313
### Previewing Changes Locally
1414
Assuming [Jekyll] and [Bundler] are installed on your computer:
1515

16-
1. Change your working directory to the root directory of your site.
16+
1. Change your working directory to `docs/` in the local copy of the repository.
1717

1818
2. Run `bundle install`.
1919

20-
3. Run `bundle exec jekyll serve --watch` to build your site and preview it at `localhost:4000`.
20+
3. Run `bundle exec jekyll serve --watch` to build your site.
2121

22-
The built site is stored in the directory `_site/`.
22+
4. Preview the site in a web browser at `localhost:4000`.
23+
24+
The built site is stored in and served from `_site/`.
25+
26+
NOTE: The copy of Ruby included with macOS will likely not be of a new enough version. We suggest you install Ruby via Homebrew with,
27+
```
28+
brew install ruby
29+
```
30+
add the following to your `.bash_profile`,
31+
```
32+
export PATH="/opt/homebrew/opt/ruby/bin:${PATH}"
33+
```
34+
then start a new terminal and follow the above steps.
2335

2436
## Structure
2537
Each page in the [front end of the documentation](https://issmteam.github.io/ISSM-Documentation/) has a corresponding Markdown file (`.md`) in the appropriate subdirectory of `docs/`. For example,

docs/_config.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ url: https://issmteam.github.io/ISSM-Documentation/
66

77
color_scheme: issm
88

9-
markdown: kramdown
10-
highlighter: rouge
11-
129
# Site logo
1310
logo: "/assets/img/brand/ISSMlogo.png"
1411

docs/_sass/custom/custom.scss

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,31 @@
9090
}
9191
}
9292

93-
/* Sidebar expanded */
93+
/*
94+
Code block styling
95+
*/
96+
.language-mat,
97+
.language-py
98+
{
99+
padding: 1em;
100+
border-radius: 0.5em;
101+
display: block;
102+
overflow-x: auto;
103+
}
104+
105+
.language-mat {
106+
background-color: #fff7f0 !important; // Light orange
107+
color: #1a1a1a;
108+
}
109+
110+
.language-py {
111+
background-color: #f0fff4 !important; // Light greenish
112+
color: #1a1a1a;
113+
}
114+
115+
/*
116+
Sidebar expanded
117+
*/
94118
@media (min-width: 800px) {
95119
.post-index {
96120
&.home-page-post-index {
@@ -117,24 +141,3 @@
117141
}
118142
}
119143
}
120-
121-
/* Python code blocks */
122-
.language-python {
123-
background-color: #f0fff4 !important; // Light greenish
124-
color: #1a1a1a;
125-
}
126-
127-
/* MATLAB code blocks */
128-
.language-matlab {
129-
background-color: #fff7f0 !important; // Light orange
130-
color: #1a1a1a;
131-
}
132-
133-
/* Optional: Padding & border for visibility */
134-
.language-python,
135-
.language-matlab {
136-
padding: 1em;
137-
border-radius: 0.5em;
138-
display: block;
139-
overflow-x: auto;
140-
}

docs/using-issm/tutorials/squareiceshelf.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ Compute the velocity field of the ice shelf:
4343
````
4444

4545
Finally, generate a plot of the velocity:
46-
```python
47-
>> plotmodel(md, 'data', md.results.StressbalanceSolution.Vel);
48-
```
4946

50-
```matlab
47+
*MATLAB*
48+
```mat
5149
plotmodel(md, data=md.results.StressbalanceSolution.Vel)
5250
```
5351

52+
*Python*
53+
```py
54+
>> plotmodel(md, 'data', md.results.StressbalanceSolution.Vel);
55+
```
5456

5557
<div style="display:flow-root"><img style="float:left;width:100.00%" src="/ISSM-Documentation/assets/img/docs/using-issm/tutorials/squareiceshelf/squarevel.png" alt="Figure 1: squarevel"></div>

0 commit comments

Comments
 (0)