Skip to content

GH-39504: [Docs] Update footer in main sphinx docs with correct attribution#39505

Merged
AlenkaF merged 2 commits into
apache:mainfrom
jorisvandenbossche:gh-39504-footer
Jan 15, 2024
Merged

GH-39504: [Docs] Update footer in main sphinx docs with correct attribution#39505
AlenkaF merged 2 commits into
apache:mainfrom
jorisvandenbossche:gh-39504-footer

Conversation

@jorisvandenbossche

@jorisvandenbossche jorisvandenbossche commented Jan 8, 2024

Copy link
Copy Markdown
Member

@github-actions

github-actions Bot commented Jan 8, 2024

Copy link
Copy Markdown

⚠️ GitHub issue #39504 has no components, please add labels for components.

@AlenkaF

AlenkaF commented Jan 8, 2024

Copy link
Copy Markdown
Member

@github-actions crossbow submit preview-docs

@github-actions

github-actions Bot commented Jan 8, 2024

Copy link
Copy Markdown

Revision: 781a79a

Submitted crossbow builds: ursacomputing/crossbow @ actions-55649db991

Task Status
preview-docs GitHub Actions

@andygrove andygrove left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread docs/source/conf.py Outdated
Comment thread docs/source/conf.py
project = u'Apache Arrow'
copyright = f'2016-{datetime.datetime.now().year} Apache Software Foundation'
copyright = (
f"2016-{datetime.datetime.now().year} Apache Software Foundation.\n"

@AlenkaF AlenkaF Jan 8, 2024

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\n doesn't add a newline. We could try multiline copyright text with comma separated items: https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-copyright like:

copyright = (
    f"2016-{datetime.datetime.now().year} Apache Software Foundation.",
    "Apache Arrow, Arrow, Apache, the Apache feather logo, and the Apache Arrow project logo are either registered",
    "trademarks or trademarks of The Apache Software Foundation in the United States and other countries"
)

but would need to use newer version of Sphinx (7.0.1, sphinx-doc/sphinx#10983). I think we should unpin Sphinx anyways.

Breaking the copyright text into multiple lines would also make it smaller in width and so the text on the right (PyData SphinxTheme text) could be kept all in one line. See http://crossbow.voltrondata.com/pr_docs/39505/

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point .. the \n indeed doesn't do anything.
Updating sphinx is indeed something we should do, but from looking at that PR, the multiline copyright might not be exactly what we want here, because from the test added in that PR, it seems that it adds the © Copyright to each line then, which we don't want (https://github.com/sphinx-doc/sphinx/pull/10983/files#diff-da24b355349b53e4c8047034767d008e4c2ce9ea6c8933a3acd50d0828f00528)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit annoying that the layout is not looking good with this long copyright text, but I am afraid that this is only something that can be fixed in the theme (or we could override the footer block in our layout).

Also on mobile it doesn't look good, but that's again an issue with the upstream theme as well.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh you are correct. Having © Copyright on each line sure isn't what we want.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, there is not much we can do about it really.

Co-authored-by: Alenka Frim <AlenkaF@users.noreply.github.com>
@github-actions github-actions Bot added awaiting changes Awaiting changes and removed awaiting committer review Awaiting committer review labels Jan 10, 2024
@raulcd

raulcd commented Jan 15, 2024

Copy link
Copy Markdown
Member

Should we merge this?
image

@AlenkaF

AlenkaF commented Jan 15, 2024

Copy link
Copy Markdown
Member

Yes, will merge 👍

@AlenkaF AlenkaF merged commit 7acbaf4 into apache:main Jan 15, 2024
@AlenkaF AlenkaF removed the awaiting changes Awaiting changes label Jan 15, 2024
@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 7acbaf4.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

@jorisvandenbossche jorisvandenbossche deleted the gh-39504-footer branch January 18, 2024 08:42
dgreiss pushed a commit to dgreiss/arrow that referenced this pull request Feb 19, 2024
… attribution (apache#39505)

* Closes: apache#39504

Lead-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Co-authored-by: Alenka Frim <AlenkaF@users.noreply.github.com>
Signed-off-by: AlenkaF <frim.alenka@gmail.com>
raulcd pushed a commit that referenced this pull request Feb 20, 2024
…bution (#39505)

* Closes: #39504

Lead-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Co-authored-by: Alenka Frim <AlenkaF@users.noreply.github.com>
Signed-off-by: AlenkaF <frim.alenka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs] Update footer in main sphinx docs

4 participants