Skip to content

Commit

Permalink
Remove README link in API docs (crystal-lang#9082)
Browse files Browse the repository at this point in the history
Also removes repository-links section which had only this single item.
It can be added again in case of future expansion.
  • Loading branch information
straight-shoota authored and carlhoerberg committed Apr 29, 2020
1 parent 9fb0cda commit a01a55c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions src/compiler/crystal/tools/doc/html/_sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ <h1 class="project-name">
<%= project_info.version %>
</span>
</div>

<div class="repository-links">
<a href="<%= current_type.try(&.path_to("")) %>index.html">README</a>
</div>
</div>

<div class="search-results" class="hidden">
Expand Down
4 changes: 0 additions & 4 deletions src/compiler/crystal/tools/doc/html/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,6 @@ body {
color: #866BA6;
}

.repository-links {
padding: 5px 15px 5px 30px;
}

.types-list li ul {
overflow: hidden;
height: 0;
Expand Down
2 changes: 0 additions & 2 deletions src/compiler/crystal/tools/doc/html/js/_search.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,9 @@ CrystalDoc.displaySearchResults = function(results, query) {
CrystalDoc.toggleResultsList = function(visible) {
if (visible) {
document.querySelector(".types-list").classList.add("hidden");
document.querySelector(".repository-links").classList.add("hidden");
document.querySelector(".search-results").classList.remove("hidden");
} else {
document.querySelector(".types-list").classList.remove("hidden");
document.querySelector(".repository-links").classList.remove("hidden");
document.querySelector(".search-results").classList.add("hidden");
}
};
Expand Down

0 comments on commit a01a55c

Please sign in to comment.