OpenWaterFoundation / owf-app-infomapper-ng

Open Water Foundation InfoMapper web application for menu-driven maps and visualizations, using Angular
GNU General Public License v3.0
1 stars 2 forks source link

Test viewing markdown from GitHub repository #268

Open smalers opened 4 years ago

smalers commented 4 years ago

Test whether docPath that points to a URL in a GitHub repository works. This would allow InfoMapper to display content pages in other locations. Of course images might not work, but doing an initial experiment would point out issues to resolve later.

Nightsphere commented 4 years ago

Using the following Github link to the raw markdown in the docPath property worked for me: https://raw.githubusercontent.com/OpenWaterFoundation/owf-app-infomapper-ng/master/infomapper/src/assets/app-default/content-pages/about-the-project.md

Using the Github link to the markdown page gave me a CORS error: https://github.com/OpenWaterFoundation/owf-app-infomapper-ng/blob/master/infomapper/src/assets/app-default/content-pages/about-the-project.md

This is what happened before when I was testing out links instead of paths for a property, which makes sense.

Nightsphere commented 2 years ago

The raw GitHub link indeed does work, and has been used in the development environment for over a year. I will wait to close this until the Geoprocessor documentation has been updated. I'll discuss with @smalers and determine if I should do it, as it would be a relatively short process.