[ 
https://issues.apache.org/jira/browse/BEAM-14220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17522528#comment-17522528
 ] 

David Huntsperger commented on BEAM-14220:
------------------------------------------

For the Python type hint page 
([https://beam.apache.org/documentation/sdks/python-type-safety/),] I was going 
to use code fences (i.e. the three backticks) instead of the highlight 
shortcode, but the page uses code_sample shortcodes to import code, and those 
code_sample snippets don't render within the triple backticks. We could dump 
the code back in, instead of importing it, but that's not great.

> Code snippets are completely hidden on pages with code snippets for just one 
> language
> -------------------------------------------------------------------------------------
>
>                 Key: BEAM-14220
>                 URL: https://issues.apache.org/jira/browse/BEAM-14220
>             Project: Beam
>          Issue Type: Bug
>          Components: website
>            Reporter: Brian Hulette
>            Priority: P2
>
> The Java/Python/Go toggle is preserved between pages. Some pages, like the 
> DataFrame API Overview (BEAM-13371), and [Python type hint 
> guidance|https://lists.apache.org/thread/t1fonotpj6nzllwx5m9ykmrxpy9hqd1n] 
> only have a single language, and if the toggle is stuck on a different 
> language, the code snippets are completely hidden.
> A workaround is to go to a page with other languages, like the [Programming 
> Guide|https://beam.apache.org/documentation/programming-guide/], and select 
> the appropriate language, then navigate back.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to