RSS Amplifier

Rida Ayed · May 4, 2020

How to use the ox-hugo Makefile

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

Amongst others, I run this script as part of my tests after a system update. cd /tmp #Cleanup rm -r ox-hugo #Clone latest repository git clone git@github.com:kaushalmodi/ox-hugo.git cd ox-hugo #Make change in org file sed -i "s/\(Kaushal\)/The awesome \1/" test/site/content-org/screenshot-subtree-export-example.org #Simulate the export from org to markdown make md1 ORG_FILE =…

Amongst others, I run this script as part of my tests after a system update.

cd /tmp
#Cleanup
rm -r ox-hugo
#Clone latest repository
git clone git@github.com:kaushalmodi/ox-hugo.git
cd ox-hugo
#Make change in org file
sed -i "s/\(Kaushal\)/The awesome \1/"  test/site/content-org/screenshot-subtree-export-example.org
#Simulate the export from org to markdown
make md1 ORG_FILE=test/site/content-org/screenshot-subtree-export-example.org
#Check if the changes appear in the created markdown (named after the title property in org)
grep Kaushal test/site/content/writing-hugo-blog-in-org-subtree-export.md

test/site/content-org/screenshot-subtree-export-example.org ::
author = ["The awesome Kaushal Modi"]

Read on /posts/test_automation_ox_hugo/

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.