Skip to content

Commit

Permalink
Add rust docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed May 21, 2024
1 parent 05eebf4 commit 62fbea3
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ jobs:
- name: Check Java coverage
run: javadoc -Xdoclint:all,-missing -d ../doc/java -subpackages *
working-directory: java
- name: Generate Rust documentation
run: cargo doc --no-deps --target-dir ../doc/rust
working-directory: rust
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/doc/c/
/doc/java/
/doc/rb/
/doc/rust/
/pkg/
/spec/reports/
/top-100-gems/
Expand Down
57 changes: 57 additions & 0 deletions doc/images/rust.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 8 additions & 4 deletions doc/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ main {
}
}

@media only screen and (max-width: 900px) {
main {
grid-template-rows: repeat(1fr);
grid-template-columns: 1fr;
height: 72vh;
}
}

@media only screen and (max-width: 600px) {
main {
margin: 2vh 5vw;
Expand All @@ -52,10 +60,6 @@ main {
vertical-align: middle;
}

.reference:first-child {
grid-column: span 2;
}

.reference > img {
height: 10vh;
width: 10vh;
Expand Down
4 changes: 4 additions & 0 deletions doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ <h2>C reference</h2>
<img src="images/ruby.svg" alt="Ruby">
<h2>Ruby reference</h2>
</a>
<a class="reference" href="rust/doc/ruby_prism/index.html">
<img src="images/rust.svg" alt="Rust">
<h2>Rust reference</h2>
</a>
<a class="reference" href="java/index.html">
<img src="images/java.png" alt="Java">
<h2>Java reference</h2>
Expand Down

0 comments on commit 62fbea3

Please sign in to comment.