Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix script that copies readme to the index.md file #210

Merged
merged 1 commit into from
Jan 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions website/scripts/copy-md-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,17 @@ index_file='./docs/index.md'
cat << EOF > $index_file
---
slug: /
title: spock
title: Home
---

<h1 align="center">
<a href="https://fidelity.github.io/spock/"><img width="200" height="208" src="https://raw.githubusercontent.com/fidelity/spock/master/resources/images/logo_small.png"/></a>
<h6 align="center">Managing complex configurations any other way would be highly illogical...</h6>
</h1>
EOF

tail -n +3 $readme_file >> $index_file
#tail -n +3 $readme_file >> $index_file
# Cat and Strip out html and details tags
cat $readme_file | sed -e 's#<*[/]*html>##g' | sed -e 's#<*[/]*details>##g' >> $index_file


contrib_file='../CONTRIBUTING.md'
to_contrib_file='./docs/contributing.md'

# Contributing
cat $contrib_file > $to_contrib_file