Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Bob
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Bob
Commits
f1d15573
Verified
Commit
f1d15573
authored
2 years ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
chore: doc
parent
ab2e875f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+68
-1
68 additions, 1 deletion
README.md
with
68 additions
and
1 deletion
README.md
+
68
−
1
View file @
f1d15573
...
@@ -43,11 +43,78 @@ Furthermore, it will parse the templates for images, anchors, and text.
...
@@ -43,11 +43,78 @@ Furthermore, it will parse the templates for images, anchors, and text.
##### Generate
##### Generate
This will generate HTML files from the prepared templates and data YAML.
This will generate HTML files from the prepared templates and data YAML.
The YAML must be located in the input directory. Any file with
`.yaml`
extension
will be processed.
```
bash
```
bash
bob html generate
--input
./output/
--output
./output/
bob html generate
--input
./input/
--output
./output/
```
The yaml looks like:
```
yaml
test1.html
:
export
:
en/test1.html
lang
:
en
title
:
TEST
meta
:
author
:
schukai GmbH
description
:
images
:
-
id
:
tickyesdata-image-gi-4013311193
source
:
|-
data:image/gif;base64,R0lGODdhEAAQAMwAAPj7+FmhUYjNfGuxYYDJdYTIeanOpT+DOTuANXi/bGOrWj6CONzv2sPjv2Cm
V1unU4zPgI/Sg6DJnJ3ImTh8Mtbs00aNP1CZSGy0YqLEn47RgXW8amasW7XWsmmvX2iuXiwAAAAAEAAQAAAFVyAgjmRpnihqGCkpDQ
PbGkNUOFk6DZqgHCNGg2T4QAQBoIiRSAwBE4VA4FACKgkB5NGReASFZEmxsQ0whPDi9BiACYQAInXhwOUtgCUQoORFCGt/g4QAIQA7
alt
:
tick
title
:
"
yes"
anchors
:
-
id
:
test-link-test-html
href
:
/test.html
hreflang
:
"
"
title
:
test-link
-
id
:
yes-a-html
href
:
/a.html
hreflang
:
"
"
title
:
"
Yes"
text
:
-
text
:
The request was incorrect, the server could not process it.
id
:
the-request-was-inco-2640993422
-
text
:
|-
If you received this message as a result of a request to the server API, then check the structure
against the documentation.
id
:
if-you-received-this-423958995
-
text
:
'
You
can
try
the
following
steps:'
id
:
you-can-try-the-foll-3363859033
translations
:
-
id
:
translations
type
:
application/json
translations
:
key1
:
value1
key2
:
value2
key3
:
one
:
value3
two
:
value4
modifications
:
remove
:
-
.example1
add
:
-
selector
:
.example2
html
:
<b><span>New Content</span></b>
attributes
:
-
selector
:
.example3
name
:
data-example
value
:
example
```
```
The translations are set in a json inside a script tag.
The modifications run last. Here you can remove tags, add inhaklt and set attributes.
##### Sync
##### Sync
This will sync HTML nodes from a source to a destination.
This will sync HTML nodes from a source to a destination.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment