Skip to content

Avoid printing disqus section in pdf #46

Open

Description

@jvleminc

Hi,

We implemented disqus for comments in our mkdocs, but when creating the pdf, below each mkdocs page the following is printed:

Please enable JavaScript to view the comments powered by Disqus. (https://disqus.com/?ref_noscript)

Any quick fix to avoid this?

Activity

  1. jvleminc commented on Jul 14, 2021

    @jvleminc
    Author

    Finally I fixed this quickly by eliminating this message from the disqus no javascript tags.

  2. comwes commented on Jul 14, 2021

    @comwes
    Owner

    Hi @jvleminc,
    Happy you've find out a fix for this.
    Indeed I think that's the best option, Because unfortunately javascript is not supported by weasyprint (We have face the same problem with latex code generated by javascript).
    Maybe I'll add in the css the style to hide noscript. Will try to include the fix in release 1.1.0

    KR,

  3. added
    enhancement
    on Jul 14, 2021
  4. added this to the Version 1.1.0 milestone on Jul 14, 2021
  5. jvleminc commented on Jul 14, 2021

    @jvleminc
    Author

    Excellent. Yes, in this case, the JS part was ignored but disqus's , containing the above text, tags were included.

    Also, I think it would be good, in general, to have some kind of tag or annotation that allows to exclude elements from the pdf versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions