Converts SuttaCentral.net text citations to links
Clone the repo
- Log into Discourse Theme Creator using your meta.discourse.org account.
- Click on My Themes in the sidebar
- Click
Install>From a git repository - Get the repo url from the repository by going to
Code>Local>HTTPSand copying the url - If there is more than one branch, click
Advancedand enter the branch name. - Click
Install - This should take you to the component's edit page. Go to the very bottom and click on
Preview - NOTE: Only pages you visit using this preivew tab will have the component active.
- Create a new post using the contents of test-post.md.
- If everything is successful all the citations that are not
struck throughshould link properly to suttacentral.net
- All new regex patterns should be added to the settings.yml file. CAUTION: YAML files are very fussy with proper spacing. If things are failing, be sure to run your new text through an online YAML parser
- Push your changes to github.
- Under My Themes click on
Check for Updatesand thenUpdate - Write new tests for whatever citations you are trying to implement including tests that should fail.
- Once everything is working, be sure to add your tests to the test-post.md
- Create a pull request and notify @helpdesk-dd of your changes.