Skip to content

Commit 65674aa

Browse files
committed
Validate HTML with HTMLProofer, Closes #12
1 parent c8dd94d commit 65674aa

File tree

13 files changed

+40
-22
lines changed

13 files changed

+40
-22
lines changed

.github/htmlproofer.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
htmlproofer ./out/ \
4+
--allow-hash-href true \
5+
--check-favicon true \
6+
--check-html true \
7+
--http-status-ignore "429" \
8+
--url-ignore "https://query.2020.eswc-conferences.org/,https://2019.eswc-conferences.org/" \
9+
--extension .html

.github/workflows/deploy-gh-pages.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,21 @@ jobs:
1616
uses: actions/checkout@v2.3.1
1717
with:
1818
persist-credentials: false
19-
2019
- name: Install and Build 🔧
2120
run: |
2221
npm install
2322
npm run build
2423
touch out/.nojekyll
2524
env:
2625
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
- name: Set up Ruby
27+
uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: 2.6
30+
- name: Check HTML ✅
31+
run: |
32+
gem install html-proofer
33+
.github/htmlproofer.sh
2734
- name: Deploy 🚀
2835
uses: JamesIves/github-pages-deploy-action@3.6.2
2936
with:

components/Navigation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ export default class Navigation extends React.Component {
44
render() {
55
return <nav>
66
<div>
7-
<a href="/"><img src="/img/comunica_white.svg" className="nav-icon" /></a>
8-
<a href="#" className="toggle-nav"><img src="/img/navigation-toggle.svg" /></a>
7+
<a href="/"><img src="/img/comunica_white.svg" className="nav-icon" alt="Comunica logo" /></a>
8+
<a href="#" className="toggle-nav"><img src="/img/navigation-toggle.svg" alt="Toggle navigation bar" /></a>
99
</div>
1010
<ul>
1111
<li><a href="http://query.linkeddatafragments.org/">Try live</a></li>

pages/_document.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ class MyDocument extends Document {
1111
render() {
1212
return (
1313
<Html>
14-
<Head/>
14+
<Head>
15+
<link rel="icon" href="/favicon.ico"/>
16+
</Head>
1517
<body>
1618
<Navigation />
1719
<div className="nav-pusher"/>

pages/ask.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ feel free to report them in our [issue tracker on GitHub](https://github.com/com
2929
Please take into account that this is an open-source effort,
3030
so we may not be able to solve all issues, but we do our best!
3131
Should you be interested in helping our with fixing or implementing any of these issues,
32-
you are very welcome to [contribute](contribute/).
32+
you are very welcome to [contribute](/contribute/).
3333

3434
## Twitter
3535

pages/docs/1_query/3_faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ and an `'end'` event will only be emitted when all of them have been consumed.
6565
## I need a specific feature, how do I get it into Comunica?
6666

6767
Since Comunica is an open-source project,
68-
the best way to get new features in, is by [contributing yourself](/contributing/).
68+
the best way to get new features in, is by [contributing yourself](/contribute/).
6969

7070
Feel free to [contact us](/ask/) for commercial support or consultancy.
7171

@@ -74,7 +74,7 @@ Feel free to [contact us](/ask/) for commercial support or consultancy.
7474
### Simple statistics
7575

7676
The easiest way to get statistics on the performance of a specific query
77-
is by using the `'stats'` [result format](/docs/query/advanced/result_format/).
77+
is by using the `'stats'` [result format](/docs/query/advanced/result_formats/).
7878
This will print the number of results, their delay from query start,
7979
and the number of HTTP requests that have been executed up until the result was available.
8080

pages/docs/1_query/advanced/destination_types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ which may produce incorrect results. For these cases, the <code>sparql</code> ty
3131
</div>
3232

3333
<div class="note">
34-
When enabling the <a href="/docs/query/getting_started/logger/"><code>info</code> logger</a>,
34+
When enabling the <a href="/docs/modify/advanced/logging/"><code>info</code> logger</a>,
3535
you can derive what type Comunica has determined for each destination.
3636
</div>
3737

pages/docs/1_query/advanced/source_types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ which may produce incorrect results. For these cases, the <code>sparql</code> ty
2020
</div>
2121

2222
<div class="note">
23-
When enabling the <a href="/docs/query/getting_started/logger/"><code>info</code> logger</a>,
23+
When enabling the <a href="/docs/modify/advanced/logging/"><code>info</code> logger</a>,
2424
you can derive what type Comunica has determined for each source.
2525
</div>
2626

pages/docs/2_modify/1_getting_started/1_custom_config_cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ For example, the imported config file `files-cais:config/sets/sparql-queryoperat
9393
}
9494
```
9595

96-
This example `files-cais:config/sets/sparql-queryoperators.json` config file contains three _[actors](/docs/modify/advanced/architecture/)_ that will be loaded into Comunica,
96+
This example `files-cais:config/sets/sparql-queryoperators.json` config file contains three _[actors](/docs/modify/advanced/architecture_core/)_ that will be loaded into Comunica,
9797
which each fulfill a specific task:
9898

9999
* `ActorQueryOperationDistinctHash`: Executes the SPARQL `DISTINCT` operator.

pages/docs/2_modify/advanced/query_output_types.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ All relevant types and interfaces are exposed by the
1919
[`IActorQueryOperationOutput`](https://comunica.github.io/comunica/modules/bus_query_operation.html#iactorqueryoperationoutput-1)
2020
is a TypeScript union type over the following interfaces:
2121

22-
* [`IActorQueryOperationOutputBindings`](https://comunica.github.io/comunica/interfaces/bus_query_operation.iactorqueryoperationoutputbindings.html): Represents a stream of bindings.
23-
* [`IActorQueryOperationOutputQuads`](https://comunica.github.io/comunica/interfaces/bus_query_operation.iactorqueryoperationoutputquads.html): Represents a stream of quads.
24-
* [`IActorQueryOperationOutputBoolean`](https://comunica.github.io/comunica/interfaces/bus_query_operation.iactorqueryoperationoutputboolean.html): Represents a boolean result.
22+
* [`IActorQueryOperationOutputBindings`](https://comunica.github.io/comunica/modules/bus_query_operation.html#iactorqueryoperationoutputbindings): Represents a stream of bindings.
23+
* [`IActorQueryOperationOutputQuads`](https://comunica.github.io/comunica/modules/bus_query_operation.html#iactorqueryoperationoutputquads): Represents a stream of quads.
24+
* [`IActorQueryOperationOutputBoolean`](https://comunica.github.io/comunica/modules/bus_query_operation.html#iactorqueryoperationoutputboolean): Represents a boolean result.
2525

2626
## Bindings output
2727

28-
An output of type [`IActorQueryOperationOutputBindings`](https://comunica.github.io/comunica/interfaces/bus_query_operation.iactorqueryoperationoutputbindings.html)
28+
An output of type [`IActorQueryOperationOutputBindings`](https://comunica.github.io/comunica/modules/bus_query_operation.html#iactorqueryoperationoutputbindings)
2929
looks as follows:
3030

3131
```typescript
@@ -45,7 +45,7 @@ which are of type `Map<string, RDF.Term>` where keys are variable names prefixes
4545

4646
## Quads output
4747

48-
An output of type [`IActorQueryOperationOutputQuads`](https://comunica.github.io/comunica/interfaces/bus_query_operation.iactorqueryoperationoutputquads.html)
48+
An output of type [`IActorQueryOperationOutputQuads`](https://comunica.github.io/comunica/modules/bus_query_operation.html#iactorqueryoperationoutputquads)
4949
looks as follows:
5050

5151
```typescript
@@ -62,7 +62,7 @@ containing [RDF/JS quads](/docs/query/advanced/rdfjs/).
6262

6363
## Boolean output
6464

65-
An output of type [`IActorQueryOperationOutputBoolean`](https://comunica.github.io/comunica/interfaces/bus_query_operation.iactorqueryoperationoutputboolean.html)
65+
An output of type [`IActorQueryOperationOutputBoolean`](https://comunica.github.io/comunica/modules/bus_query_operation.html#iactorqueryoperationoutputboolean)
6666
looks as follows:
6767

6868
```typescript

0 commit comments

Comments
 (0)