eosnetworkfoundation / docsgen

Scripts for creating docs.eosnetwork.com pulls from various eos nf repos and builds static HTML to power website
Other
3 stars 0 forks source link

YAML metadata leaking into content #34

Closed ericpassmore closed 2 years ago

ericpassmore commented 2 years ago

YAML Leaks into page

Title meta-data at top and it pushes down previous meta-data.

Investigate

The replacement of text might not work when there is more then just content-title.

Example

01_nodeos/05_rpc_apis/index.md

---
title: Rpc Apis
---
---
content_title: RPC APIs
link_text: RPC APIs
---
ericpassmore commented 2 years ago

duplicate #15

ericpassmore commented 2 years ago

found in https://docs.eosnetwork.com/welcome/latest/getting-started/

ericpassmore commented 2 years ago

Looks like the problem was multiple lines with name: value meta-data. The script only assumed one line title: value. Added [^-]* to regex to match more name: value pair