Skip to content

Fix #4390: html: Consistent and semantic CSS for signatures - #6401

Merged
tk0miya merged 1 commit into
sphinx-doc:2.0from
tk0miya:4390_semantic_signature_in_HTML
May 29, 2019
Merged

tk0miya merged 1 commit into
sphinx-doc:2.0from
tk0miya:4390_semantic_signature_in_HTML

Conversation

@tk0miya

@tk0miya tk0miya commented May 27, 2019

Copy link
Copy Markdown
Member

Feature or Bugfix

  • Feature

Purpose

@timhoffm Could you check this please? I don't know this resolves #5868 case.

@tk0miya tk0miya added type:enhancement enhance or introduce a new feature builder:html labels May 27, 2019
@tk0miya tk0miya added this to the 2.1.0 milestone May 27, 2019
@timhoffm

Copy link
Copy Markdown
Contributor

This goes definitively in the right direction (c.f. #4390).

For #5868 you could achieve at least different colors of the commas and the parameters. However more fine-grained control would be desireable: Separate spans for

  • parameter name
  • default value
  • type hint

AFAICS param_name: type = default is currently a single element. This would require splitting the parameter further in the parser.

@tk0miya
tk0miya force-pushed the 4390_semantic_signature_in_HTML branch from ae1e78a to bd4cd57 Compare May 28, 2019 15:49
@codecov

codecov Bot commented May 28, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #6401 into 2.0 will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##              2.0    #6401      +/-   ##
==========================================
+ Coverage   83.59%   83.62%   +0.02%     
==========================================
  Files         282      280       -2     
  Lines       40429    40395      -34     
  Branches     5956     5953       -3     
==========================================
- Hits        33796    33779      -17     
+ Misses       5301     5287      -14     
+ Partials     1332     1329       -3
Impacted Files Coverage Δ
sphinx/writers/html5.py 89.51% <100%> (ø) ⬆️
sphinx/__init__.py
sphinx/make_mode.py

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 804d5d8...bd4cd57. Read the comment docs.

@tk0miya

tk0miya commented May 29, 2019

Copy link
Copy Markdown
Member Author

I agree that more fine-grained control is better. But goal of #5868 is folding long arguments by each argument, I think. So the separation is not filed to issues yet. Could you file an issue please?

@tk0miya
tk0miya merged commit eea9fbb into sphinx-doc:2.0 May 29, 2019
@tk0miya
tk0miya deleted the 4390_semantic_signature_in_HTML branch May 29, 2019 15:49
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

builder:html type:enhancement enhance or introduce a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants