Hi Nathan,

AFAIK (and others know far more about the inner workings of Jekyll than I do), no easy way to do this other than pulling down the PR and rendering locally on your machine. The person submitting the PR may have it on a branch other than gh-pages, some patch branch, or may have not turned on gh-pages rendering at all, so it won't always work to go to their github.io site. The {: .python} tags in your email just handle the code highlighting, so the rendered version should look relatively similar to what you see in the diff (just prettier).

I've found the episodes here helpful in understanding some of the templating syntax that gets used: http://swcarpentry.github.io/lesson-example/

Best,
Naupaka

On 24 Mar 2017, at 13:10, Moore, Nathan T wrote:

Hi All,

I'm a new maintainer of the python-gapminder lesson.

Quick question - When I look at a pull request, specifically the markdown file with diffs (files changed), and click the "view" button on the upper right, I get a sort-of rendered markdown file but some of the markdown remains raw - specifically python code and output. Is there another button in github to view what the proposed change will look like after final rendering with Jekyl? Should I go to the proposer's github.io site to see the rendered file?

Regards and thanks,

Nathan



For example, the raw source file:

---

## Use the built-in function `type` to find the type of a value.

* Use the built-in function `type` to find out what type a value has.
*   Works on variables as well.
* But remember: the *value* has the type --- the *variable* is just a label.

~~~
print(type(52))
~~~
{: .python}
~~~
<class 'int'>
~~~
{: .output}

~~~
fitness = 'average'
print(type(fitness))
~~~
{: .python}
~~~
<class 'str'>
~~~
{: .output}
----
Renders via the view button as
---
Use the built-in function type to find the type of a value.

Use the built-in function type to find out what type a value has.
Works on variables as well.
But remember: the value has the type --- the variable is just a label.
print(type(52))
{: .python}

<class 'int'>
{: .output}

fitness = 'average'
print(type(fitness))
{: .python}

<class 'str'>
{: .output}

----


_______________________________________________
Discuss mailing list
[email protected]
http://lists.software-carpentry.org/listinfo/discuss
_______________________________________________
Discuss mailing list
[email protected]
http://lists.software-carpentry.org/listinfo/discuss

Reply via email to