Git Product home page Git Product logo

Comments (9)

wRAR avatar wRAR commented on June 7, 2024 1

@Gallaecio I mean those two elements even have different depth, and #std-setting-HTTPPROXY_AUTH_ENCODING is inside #httpproxy-enabled, so this HTML looks like something that works approximately (because the links are near the place we want) but is not strictly what we want.

from scrapy.

wRAR avatar wRAR commented on June 7, 2024 1

@Rotzbua do you suggest migrating to 7.x later?

from scrapy.

wRAR avatar wRAR commented on June 7, 2024

The exception is caused by some change in Sphinx 7.2.0 that leads to a different order of nodes when there are two .. setting directives in a row (index,target,index,target in older versions but index,index,target,target in newer ones) which breaks our code. No idea yet why this happens and if it's expected.

from scrapy.

wRAR avatar wRAR commented on June 7, 2024

Bisected to sphinx-doc/sphinx#10478

from scrapy.

wRAR avatar wRAR commented on June 7, 2024

sphinx-doc/sphinx#11797

from scrapy.

wRAR avatar wRAR commented on June 7, 2024

Per the comment in the upstream issue we need to change the logic in get_setting_target() and it should be relatively easy to do that.

As an aside, I'm not sure if the HTML that is currently generated for multiple setting directives in a row is correct, see e.g. https://docs.scrapy.org/en/latest/topics/downloader-middleware.html#httpproxymiddleware-settings and where are the #std-setting-HTTPPROXY_ENABLED and #std-setting-HTTPPROXY_AUTH_ENCODING elements.

from scrapy.

Gallaecio avatar Gallaecio commented on June 7, 2024

As an aside, I'm not sure if the HTML that is currently generated for multiple setting directives in a row is correct, see e.g. https://docs.scrapy.org/en/latest/topics/downloader-middleware.html#httpproxymiddleware-settings and where are the #std-setting-HTTPPROXY_ENABLED and #std-setting-HTTPPROXY_AUTH_ENCODING elements.

As far as I know, <span id="…"></span> is a valid approach to set an anchor anywhere on an HTML document.

from scrapy.

Rotzbua avatar Rotzbua commented on June 7, 2024

@wRAR With Sphinx v7 a lot is being reworked. This leads to many side effects. I would advise you to migrate to the latest v6.

from scrapy.

Gallaecio avatar Gallaecio commented on June 7, 2024

Fixed by #6200

from scrapy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.