zeus 3 years ago
parent
commit
35a4e0bee7
  1. 1
      .gitignore
  2. 2
      build-intro.sh
  3. 21
      intro/site-base.yml
  4. 115
      intro/supplemental-ui/css/search.css
  5. 0
      intro/supplemental-ui/partials/file.here
  6. 0
      supplemental-ui/css/search.css
  7. 0
      supplemental-ui/partials/file.here

1
.gitignore

@ -6,3 +6,4 @@ docs/node_modules/
docs/package-lock.json
docs/package.json
site-update.sh
*/build

2
build-intro.sh

@ -2,4 +2,4 @@ docker stop swarmlab-documentation
docker container rm swarmlab-documentation
docker pull hub.swarmlab.io:5480/antora
docker run -ti --name swarmlab-documentation -v $PWD/intro:/antora hub.swarmlab.io:5480/antora /bin/sh -c "DOCSEARCH_ENABLED=true DOCSEARCH_ENGINE=lunr DOCSEARCH_INDEX_VERSION=latest NODE_PATH=/usr/local/lib/node_modules:\$NODE_PATH exec sh -c '/antora/run/build-intro.sh'"
docker run -ti --name swarmlab-documentation -v $PWD/intro:/antora -v $PWD/supplemental-ui:/antora/supplemental-ui hub.swarmlab.io:5480/antora /bin/sh -c "DOCSEARCH_ENABLED=true DOCSEARCH_ENGINE=lunr DOCSEARCH_INDEX_VERSION=latest NODE_PATH=/usr/local/lib/node_modules:\$NODE_PATH exec sh -c '/antora/run/build-intro.sh'"

21
intro/site-base.yml

@ -1,21 +0,0 @@
site:
title: Swarmlab sec-intro
url: http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs
start_page: swarmlab_sec-intro::index.adoc
content:
sources:
- url: https://git.swarmlab.io:3000/docs/Documentation.git
branches: master
start_path: docs
ui:
bundle:
url: https://git.swarmlab.io:3000/docs/docs/raw/branch/master/ui-bundle.zip
snapshot: true
supplemental_files: ./supplemental-ui
asciidoc:
attributes:
:plantuml-server-url: http://www.plantuml.com/plantuml
extensions:
- '@djencks/asciidoctor-mathjax'
- asciidoctor-plantuml

115
intro/supplemental-ui/css/search.css

@ -1,115 +0,0 @@
.navbar-brand .navbar-item + .navbar-item {
flex-grow: 1;
justify-content: flex-end;
}
@media screen and (min-width: 1024px) {
.navbar-brand {
flex-grow: 1;
}
.navbar-menu {
flex-grow: 0;
}
}
#search-input {
color: #333;
font-family: inherit;
font-size: 0.95rem;
width: 150px;
border: 1px solid #dbdbdb;
border-radius: 0.1em;
line-height: 1.5;
padding: 0 0.25em;
}
@media screen and (min-width: 769px) {
#search-input {
width: 200px;
}
}
.search-result-dropdown-menu {
position: absolute;
z-index: 100;
display: block;
right: 0;
left: inherit;
top: 100%;
border-radius: 4px;
margin: 6px 0 0;
padding: 0;
text-align: left;
height: auto;
background: transparent;
border: none;
max-width: 600px;
min-width: 500px;
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2), 0 2px 3px 0 rgba(0, 0, 0, 0.1);
}
@media screen and (max-width: 768px) {
.navbar-brand .navbar-item + .navbar-item {
padding-left: 0;
padding-right: 0;
}
.search-result-dropdown-menu {
min-width: calc(100vw - 3.75rem);
}
}
.search-result-dataset {
position: relative;
border: 1px solid #d9d9d9;
background: #fff;
border-radius: 4px;
overflow: auto;
padding: 0 8px 8px;
max-height: calc(100vh - 5.25rem);
color: #333;
}
.search-result-highlight {
color: #174d8c;
background: rgba(143, 187, 237, 0.1);
padding: .1em .05em;
}
.search-result-item {
display: flex;
font-size: 1rem;
margin-bottom: 0.5rem;
margin-top: 0.5rem;
}
.search-result-document-title {
width: 33%;
border-right: 1px solid #ddd;
color: #a4a7ae;
font-size: 0.8rem;
padding: 0.25rem 0.5rem 0.25rem 0;
text-align: right;
position: relative;
word-wrap: break-word;
}
.search-result-document-hit {
flex: 1;
font-size: 0.75em;
color: #02060c;
font-weight: 700;
}
.search-result-document-hit > a {
color: inherit;
display: block;
padding: 0.5rem 0 0.5rem 1rem;
margin-bottom: 0.25rem;
}
.search-result-document-hit > a:hover {
background-color: rgba(69, 142, 225, 0.05);
}

0
intro/supplemental-ui/partials/file.here

0
docs/supplemental-ui/css/search.css → supplemental-ui/css/search.css

0
docs/supplemental-ui/partials/file.here → supplemental-ui/partials/file.here

Loading…
Cancel
Save