Skip to content

Commit

Permalink
update doc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeEscande committed Jun 26, 2024
1 parent 50d11f1 commit dababa5
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 4 deletions.
3 changes: 3 additions & 0 deletions doc/doc-ui/src/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.spacer {
flex: auto;
}
1 change: 1 addition & 0 deletions doc/doc-ui/src/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
@import "footer.css";
@import "highlight.css";
@import "print.css";
@import "custom.css";
44 changes: 44 additions & 0 deletions doc/doc-ui/src/img/chat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions doc/doc-ui/src/img/github-mark-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions doc/doc-ui/src/partials/edit-this-page.hbs
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@

{{#if (and page.fileUri (not env.CI))}}
<div class="edit-this-page"><a href="{{page.fileUri}}">Edit this Page</a></div>
{{else if (and page.editUrl (or env.FORCE_SHOW_EDIT_PAGE_LINK (not page.origin.private)))}}
<div class="edit-this-page"><a href="{{page.editUrl}}">Edit this Page</a></div>
{{/if}}
7 changes: 6 additions & 1 deletion doc/doc-ui/src/partials/header-content.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
<div id="topbar-nav" class="navbar-menu">
<div class="navbar-end">

<a class="navbar-item" href="{{{relativize (resolvePageURL 'home::index.adoc')}}}">Home</a>
<a class="navbar-item" target="_blank" href="https://github.com/eclipse-syson/syson">
<img class="icon" src="{{{uiRootPath}}}/img/github-mark-white.svg" alt="GitHub"/>
</a>
<a class="navbar-item" target="_blank" href="https://github.com/eclipse-syson/syson/discussions">
<img class="icon" src="{{{uiRootPath}}}/img/chat.svg" alt="Chat"/>
</a>

{{#if env.SITE_SEARCH_PROVIDER}}
<div class="navbar-item search hide-for-print">
Expand Down
5 changes: 3 additions & 2 deletions doc/doc-ui/src/partials/main.hbs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<main class="article">
{{> toolbar}}
<div class="content">
<div class="spacer"></div>
{{#if (eq page.layout '404')}}
{{> article-404}}
{{else}}
{{> toc}}
<div class="spacer"></div>
{{> article}}
<div class="spacer"></div>
{{> toc}}
{{/if}}
</div>
</main>
2 changes: 1 addition & 1 deletion doc/docs-site/antora-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ content:
sources:
- url: /usr/app
start_paths: doc/content
branches: HEAD
branches: ["main"]

ui:
bundle:
Expand Down

0 comments on commit dababa5

Please sign in to comment.