Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add :confval:html_js_files #5034

Merged
merged 1 commit into from
Jun 9, 2018
Merged

Conversation

tk0miya
Copy link
Member

@tk0miya tk0miya commented Jun 2, 2018

Feature or Bugfix

  • Feature

Purpose

  • Add new confval html_js_files to add user JS files through configuration (like html_css_files)

@codecov
Copy link

codecov bot commented Jun 6, 2018

Codecov Report

Merging #5034 into master will increase coverage by <.01%.
The diff coverage is 91.89%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5034      +/-   ##
==========================================
+ Coverage   82.28%   82.29%   +<.01%     
==========================================
  Files         297      297              
  Lines       38975    39002      +27     
  Branches     5990     5993       +3     
==========================================
+ Hits        32072    32096      +24     
- Misses       5583     5586       +3     
  Partials     1320     1320
Impacted Files Coverage Δ
sphinx/registry.py 69.25% <100%> (+0.44%) ⬆️
tests/test_build_html.py 97.41% <100%> (+0.01%) ⬆️
sphinx/application.py 71.94% <100%> (-0.46%) ⬇️
sphinx/builders/html.py 83.38% <90%> (+0.16%) ⬆️

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 9617b13...9fc2657. Read the comment docs.

self.add_js_file(filename, **attributes)

for entry in self.get_builder_config('js_files', 'html'):
if isinstance(entry, string_types):
Copy link
Member Author

Choose a reason for hiding this comment

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

This conversion should be moved config-inited event like html_css_files

@tk0miya tk0miya merged commit fc7817b into sphinx-doc:master Jun 9, 2018
@tk0miya tk0miya deleted the add_html_js_files branch June 9, 2018 02:51
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant