sphinx-doc/sphinx

Specifying copyright on a file-by-file basis

已關閉

#6,599 建立於 2019年7月23日

 (1 則留言) (0 個反應) (0 位負責人)Python (1,985 個分叉)batch import
awaiting:responsehelp wantedtype:enhancement

倉庫指標

星標
 (5,625 顆星)
PR 合併指標
 (平均合併 10天 11小時) (30 天內合併 11 個 PR)

描述

Is your feature request related to a problem? Please describe.

My project has a lot of legacy content written by many contributors, so the copyright on those pages is fixed. I'd like to use Creative Commons licenses for new content. Unfortunately, it seems as though Sphinx can only be configured with a single copyright value, applied to all documents.

Describe the solution you'd like

Would the maintainers accept a new feature to override the copyright string on a per-file basis? It seems as though Sphinx's file-wide metadata would be the appropriate place to implement this, but maybe there's a better way.

Describe alternatives you've considered

I could fork the HTML template I am using and modify it to ignore the built-in "copyright" configuration and render the value of a custom variable. I'd rather not take on the burden of maintaining such a template. That would be especially taxing if the project's documentation were to target additional output formats.

貢獻者指南