Skip to content

Commit 019b702

Browse files
authored
Merge pull request #10 from microROS/feature/web_updates
New testing tool and fix broken links
2 parents 0f5b20e + fec5f72 commit 019b702

6 files changed

Lines changed: 37 additions & 7 deletions

File tree

Gemfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
source 'https://rubygems.org'
22
gem 'github-pages', group: :jekyll_plugins
3-
#gemspec
3+
4+
# Testing utilities
5+
gem "html-proofer"
6+
7+
#gemspec

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,27 @@ After installing Jekyll, install all dependencies by running
1818
bundle install
1919
```
2020

21+
## Testing generated site
22+
23+
To test the generated HTML site, you can use `html-proofer` gem.
24+
This Ruby gem checks and validates the jekyll generated HTML files.
25+
It checks a broad set of points: internal and external links existence (alerting of possible 404 errors), HTML attributes of the images and so on.
26+
27+
To install it, It has been incorporated in the Gemfile so the previous dependency install command would have already installed it.
28+
29+
You can run the following gem to tests the generated site.
30+
31+
```bash
32+
bundle exec jekyll build
33+
bundle exec htmlproofer ./_site
34+
```
35+
36+
A utility script has also been included to run these checks in a CI system smoothly.
37+
38+
```bash
39+
./scripts/cibuild
40+
```
41+
2142
## License
2243

2344
Released under [the Apache Public License 2.0](LICENSE).

_docs/embedded_tf/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Table of contents
99
- [Introduction and Goal](#introduction-and-goal)
1010
- [Requirements](#requirements)
1111
- [Design](#design)
12-
- [Implementation of tf2_filter](#implementation-of-tf2filter)
12+
- [Implementation of tf2_filter](#implementation-of-tf2_filter)
1313
- [Roadmap](#roadmap)
1414
- [Acknowledgments](#acknowledgments)
1515

_docs/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ We're basically following the ROS2 architecture and make use of its middleware p
1717

1818
## Concept Documentation
1919

20-
- Predictable scheduling and execution: [real-time_executor](real-time_executor/)
21-
- System modes and system hierarchy: [system_modes](system_modes/)
22-
- Embedded transform (tf) library: [embedded_tf](embedded_tf/)
20+
- Predictable scheduling and execution: [real-time_executor](/docs/real-time_executor/)
21+
- System modes and system hierarchy: [system_modes](/docs/system_modes/)
22+
- Embedded transform (tf) library: [embedded_tf](/docs/embedded_tf/)
2323
- Reference hardware: [https://github.com/microROS/hardware](https://github.com/microROS/hardware)
2424
- Build infrastructure for embedded development using docker: [https://github.com/microROS/docker](https://github.com/microROS/docker)
25-
- FIWARE interoperability: [FIROS2](FIROS2/)
25+
- FIWARE interoperability: [FIROS2](/docs/FIROS2)
2626

2727
## Source Code Repositories
2828

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h1 class="text-center"><i class="fa fa-cogs" aria-hidden="true"></i></h1>
4141
<h3 class="text-center">Getting Started</h3>
4242
<p>To get you started quickly, header over to the <a href="/docs/tutorials/">tutorial</a> section. The basic ones
4343
can even be done without a micro-controller. For more background and details, see the
44-
<a href="docs/">documentation</a>.</p>
44+
<a href="/docs/home/">documentation</a>.</p>
4545
</div>
4646
<div class="col-sm-4">
4747
<h1 class="text-center"><i class="fa fa-code-fork" aria-hidden="true"></i></h1>

scripts/cibuild

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
set -e # halt script on error
3+
4+
bundle exec jekyll build
5+
bundle exec htmlproofer ./_site

0 commit comments

Comments
 (0)