Skip to content

Commit

Permalink
Merge pull request #3025 from dschnelldavis/2029-make-api-documentati…
Browse files Browse the repository at this point in the history
…on-more-user-friendly

docs(all help files): keep menu on screen
  • Loading branch information
mlissner authored Aug 25, 2023
2 parents 5f16e9e + 348d2ef commit 185f1be
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cl/api/templates/bulk-data.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{% block content %}
<div class="col-xs-12">
<div class="row">
<div class="hidden-xs hidden-sm col-md-3">
<div id="toc-container" class="hidden-xs hidden-sm col-md-3">
<div id="toc">
<h3>Table of Contents</h3>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion cl/api/templates/replication.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


{% block content %}
<div class="hidden-xs hidden-sm col-md-3">
<div id="toc-container" class="hidden-xs hidden-sm col-md-3">
<div id="toc">
<h3>Table of Contents</h3>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion cl/api/templates/rest-docs-vlatest.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{% endblock %}

{% block content %}
<div class="hidden-xs hidden-sm col-md-3">
<div id="toc-container" class="hidden-xs hidden-sm col-md-3">
{% include "includes/toc_sidebar.html" %}
</div>
<div class="col-xs-12 col-md-8 col-lg-6">
Expand Down
2 changes: 1 addition & 1 deletion cl/api/templates/webhooks-docs-vlatest.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{% endblock %}

{% block content %}
<div class="hidden-xs hidden-sm col-md-3">
<div id="toc-container" class="hidden-xs hidden-sm col-md-3">
<div id="toc">
<h3>Table of Contents</h3>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion cl/api/templates/webhooks-getting-started.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h4 class="v-offset-below-2">
</h4>
</div>

<div class="hidden-xs hidden-sm col-md-3">
<div id="toc-container" class="hidden-xs hidden-sm col-md-3">
<h4 class="v-offset-below-3">
<i class="fa fa-arrow-circle-o-left gray"></i>
<a href="{% url "webhooks_docs" %}">Back to Webhooks Docs</a>
Expand Down
4 changes: 4 additions & 0 deletions cl/assets/static-global/css/override.css
Original file line number Diff line number Diff line change
Expand Up @@ -1510,6 +1510,10 @@ textarea {
#toc > ul > li > ul > li > ul {
padding-inline-start: 20px;
}
#toc-container {
position: sticky;
top: 0px;
}
/* END Webhooks styles */


Expand Down
2 changes: 1 addition & 1 deletion cl/simple_pages/templates/contribute.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% block sidebar %}{% endblock %}

{% block content %}
<div class="hidden-xs hidden-sm col-md-3">
<div id="toc-container" class="hidden-xs hidden-sm col-md-3">
<div id="toc">
<h3>Table of Contents</h3>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion cl/simple_pages/templates/help/coverage.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
{% endblock %}

{% block content %}
<div class="hidden-xs hidden-sm col-md-3">
<div id="toc-container" class="hidden-xs hidden-sm col-md-3">
<div id="toc">
<h3>Table of Contents</h3>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion cl/simple_pages/templates/help/coverage_fds.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


{% block content %}
<div class="hidden-xs hidden-sm col-md-3">
<div id="toc-container" class="hidden-xs hidden-sm col-md-3">
<div id="toc">
<h3>Table of Contents</h3>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion cl/simple_pages/templates/help/donation_help.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


{% block content %}
<div class="hidden-xs hidden-sm col-md-3">
<div id="toc-container" class="hidden-xs hidden-sm col-md-3">
<div id="toc">
<h3>Table of Contents</h3>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion cl/simple_pages/templates/help/tags_help.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


{% block content %}
<div class="hidden-xs hidden-sm col-md-3">
<div id="toc-container" class="hidden-xs hidden-sm col-md-3">
<div id="toc">
<h3>Table of Contents</h3>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion cl/simple_pages/templates/terms/latest.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% block sidebar %}{% endblock %}

{% block content %}
<div class="hidden-xs hidden-sm col-md-3">
<div id="toc-container" class="hidden-xs hidden-sm col-md-3">
<div id="toc">
<h3>Table of Contents</h3>
<ul>
Expand Down

0 comments on commit 185f1be

Please sign in to comment.