jupyter-book icon indicating copy to clipboard operation
jupyter-book copied to clipboard

Remove copyright

Open mlucool opened this issue 3 years ago • 4 comments

Describe the problem/need and solution

Context For internal sites, adding a copyright does not always make sense and adds a little bit of distraction in the footer. I'd like to remove it.

Problem / Idea I tried setting copyright to "" but, unlike when I do this for author, this leaves some text on the page.

Solution Support copyright explicitly set to empty to mean removing this line in the footer.

Benefit This would benefit the people trying keep footers clean when copyright info is not required on every page.

Guide for implementation

Per above, in _config.yaml accept copyright: "" to mean don't add copyright information in the footer.

Tasks and updates

No response

mlucool avatar Apr 05 '22 19:04 mlucool

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

welcome[bot] avatar Apr 05 '22 19:04 welcome[bot]

Hmm, if I set copyright to "", I think I get no text appearing there. Screen Shot 2022-04-16 at 7 12 39 PM

The customized footer you see in the footer can be achieved like so:

html:
  extra_footer : |
      <div>
      <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/"><img src="https://licensebuttons.net/l/by-nc-sa/3.0/88x31.png"></a>
          All content on this site (unless otherwise specified) is licensed under the <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0 license</a>
      </div>

firasm avatar Apr 17 '22 02:04 firasm

The copyright line can be hidden with

sphinx:
  config:
    html_show_copyright: false

Source: https://jupyterbook.org/en/stable/advanced/html.html#adding-a-license-to-your-html-footer

Maybe this option could be a bit more discoverable.

tfiers avatar May 21 '22 13:05 tfiers

@tfiers's solution above solves this nicely.

mikegerber avatar Feb 21 '24 17:02 mikegerber