Skip to content

Commit

Permalink
docs: docsgen proto html scroll fixes (#573)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <[email protected]>
  • Loading branch information
jkowalleck authored Jan 11, 2025
1 parent cf1ffa0 commit b50ff0d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docgen/proto/templates/html.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
{{/*

template taken from
template taken from
https://github.com/pseudomuto/protoc-gen-doc/blob/master/resources/html.tmpl

*/}}
Expand All @@ -24,11 +24,9 @@ https://github.com/pseudomuto/protoc-gen-doc/blob/master/resources/html.tmpl
<link href="/favicon.ico" rel="shortcut icon" type="image/ico" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/4.6.2/css/bootstrap.min.css" integrity="sha512-rt/SrQ4UNIaGfDyEXZtNcyWvQeOq0QLygHluFQcSjaGB04IxWhal71tKuzP6K8eYXYB6vJV4pHkXcmFGGQ1/0w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha512-SfTiTlX6kk+qitfevl/7LibUOeJWlt9rbyDn92a1DqWOw9vWG2MFoays0sgObmWazO5BQPiFucnnEAjpAB+/Sw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" type="text/css" href="schema_doc.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.slim.js" integrity="sha512-docBEeq28CCaXCXN7cINkyQs0pRszdQsVBFWUd+pLNlEk3LDlSDDtN7i1H+nTB8tshJPQHS0yu0GW9YGFd/CRg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/4.6.2/js/bootstrap.min.js" integrity="sha512-7rusk8kGPFynZWu26OKbTeI+QPoYchtxsmPeBqkHIEXJxeun4yJ4ISYe7C6sz9wdxeE1Gk3VxsIWgCZTc+vX3g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/markdown-it/13.0.2/markdown-it.min.js" integrity="sha512-ohlWmsCxOu0bph1om5eDL0jm/83eH09fvqLDhiEdiqfDeJbEvz4FSbeY0gLJSVJwQAp0laRhTXbUQG+ZUuifUQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="schema_doc.min.js"></script>
<style>
/* template-originals */
body { /* removed */ }
Expand Down Expand Up @@ -180,6 +178,9 @@ https://github.com/pseudomuto/protoc-gen-doc/blob/master/resources/html.tmpl
</style>
<style>
/* customs */
html {
scroll-padding-top: 110px;
}
body {
font: 16px/1.5em "Helvetica Neue",Helvetica,Arial,sans-serif;
color: #222;
Expand Down Expand Up @@ -236,12 +237,11 @@ https://github.com/pseudomuto/protoc-gen-doc/blob/master/resources/html.tmpl
}
h1, h2, h3, h4, h5, h6 {
color: rgb(52 57 175);

}
h1 {
font-size: 36px;
}
h3 {
h3 {
padding-top: 2ex;
}
pre {
Expand Down

0 comments on commit b50ff0d

Please sign in to comment.