Skip to content

Commit 047911c

Browse files
committed
Python syntax highlighting, redirects, greening links
1 parent e13b35d commit 047911c

3 files changed

Lines changed: 54 additions & 23 deletions

File tree

source/_redirects.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{
2+
"api/presentation/1/index.html" : "/api/metadata/1.0/index.html",
23
"api/presentation/index.html" : "/api/presentation/2.0/index.html",
34
"api/presentation/2/index.html" : "/api/presentation/2.0/index.html",
45
"api/metadata/index.html" : "/api/metadata/1.0/index.html",
56
"api/metadata/1/index.html" : "/api/metadata/1.0/index.html",
7+
68
"api/image/index.html" : "/api/image/1.1/index.html",
79
"api/image/1/index.html" : "/api/image/1.1/index.html",
810
"api/image/2/index.html" : "/api/image/2.0/index.html",
11+
912
"api/index.html" : "/technical-details.html",
13+
1014
"model/index.html" : "/model/shared-canvas/1.0/index.html",
11-
"model/shared-canvas/index.html" : "/model/shared-canvas/1.0/index.html"
15+
"model/shared-canvas/index.html" : "/model/shared-canvas/1.0/index.html"
1216
}
1317

source/api/annex/openannotation/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,7 @@ Thanks to the members of the [IIIF][iiif-community] for their continuous engagem
9696

9797
[image-api]: /api/image/{{ site.image_api.latest.major }}.{{ site.image_api.latest.minor }}/ "Image API"
9898
[prezi-api]: /api/presentation/{{ site.presentation_api.latest.major }}.{{ site.presentation_api.latest.minor }}/ "Presentation API"
99-
[openanno]: http://www.openanotation.org/spec/core/ "Open Annotation"
100-
[prezi-rot]: /api/presentation/{{ site.presentation_api.latest.major }}.{{ site.presentation_api.latest.minor }}/#rotation "Rotation in Presentation API"
99+
[openanno]: http://www.openannotation.org/spec/core/ "Open Annotation"
100+
[prezi-rot]: /api/presentation/2.0/#rotation "Rotation in Presentation API"
101+
102+

source/css/spec-doc2.scss

Lines changed: 45 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -148,32 +148,57 @@ dt {
148148
border: 1px dashed #bbb;
149149
padding-left: 5px;
150150
margin-left: 30px
151-
}
152151

153-
.c1 {
154-
font-style: italic;
155-
color: #909090
156-
}
157-
.s2 {
158-
color: #209020
159-
}
160-
.nt {
161-
color: #202090
162152
}
163-
.p {color: black}
164-
.o {color: black}
165153

166-
.err {
167-
font-style: italic;
168-
color: #909090
169-
}
170-
.mi {
171-
color: #902020
154+
.python {
155+
.c {
156+
font-style: italic;
157+
color: #909090;
158+
}
159+
.n {
160+
color: #202090;
161+
}
162+
.o {
163+
color: black;
164+
}
165+
.k {
166+
color: green;
167+
}
168+
.mi {
169+
color: #209020;
170+
}
171+
.nb {
172+
color: #902020;
173+
}
172174
}
173-
.mf {
174-
color: #902020
175+
176+
.json {
177+
.c1 {
178+
font-style: italic;
179+
color: #909090
180+
}
181+
.s2 {
182+
color: #209020
183+
}
184+
.nt {
185+
color: #202090
186+
}
187+
.p {color: black}
188+
.o {color: black}
189+
.err {
190+
font-style: italic;
191+
color: #909090
192+
}
193+
.mi {
194+
color: #902020
195+
}
196+
.mf {
197+
color: #902020
198+
}
175199
}
176200

201+
177202
.CodeRay {
178203
background: #eee;
179204
border: 1px dashed #bbb;

0 commit comments

Comments
 (0)