Skip to content

Commit

Permalink
chore: Update entrypoint.sh and metadata.ttl files
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricdcc committed Sep 6, 2024
1 parent 4a6b60d commit a37751f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ echo "copying over ./img files to build folder ./build/img"

#in the index.html add the following line <link href="./metadata.ttl" rel="describedby" type=" text/turtle"> to the head tag
echo "adding the following line <link href="./metadata.ttl" rel="describedby" type="text/turtle"> to the head tag of the index.html file"
sed -i "s|</head>|<link href="./metadata.ttl" rel="describedby" type="text/turtle"/></head>|g" ./build/index.html
sed -i "s|</head>|<link href=\"./metadata.ttl\" rel=\"describedby\" type=\"text/turtle\"></head>|g" ./build/index.html

#in the index.html add a script tag type="text/turtle" with as content the contents of the metadata.ttl file to the head tag
echo put the cat output of the metadata.ttl file in the index.html file as a script tag type="text/turtle"
sed -i "s|</head>|<script type=\"text/turtle">$(cat ./public/metadata.ttl)</script></head>|g" ./build/index.html
sed -i "s|</head>|<script type=\"text/turtle\">$(cat ./public/metadata.ttl)</script></head>|g" ./build/index.html

#in index.html change the <head><meta name="description"> to what was provided in ./src/data/main_data.json keys "description"
#echo "in index.html change the <head><meta name="description"> and <title> to what was provided in ./src/data/main_data.json keys "description" and "long_name""
Expand Down

0 comments on commit a37751f

Please sign in to comment.