diff --git a/assets/stylesheets/application-dark.css.scss b/assets/stylesheets/application-dark.css.scss index c8dc1f8f..05ff7e9e 100644 --- a/assets/stylesheets/application-dark.css.scss +++ b/assets/stylesheets/application-dark.css.scss @@ -79,6 +79,7 @@ 'pages/phpunit', 'pages/postgres', 'pages/pug', + 'pages/python', 'pages/ramda', 'pages/rdoc', 'pages/react_native', diff --git a/assets/stylesheets/application.css.scss b/assets/stylesheets/application.css.scss index 26e0b885..eb73cdff 100644 --- a/assets/stylesheets/application.css.scss +++ b/assets/stylesheets/application.css.scss @@ -79,6 +79,7 @@ 'pages/phpunit', 'pages/postgres', 'pages/pug', + 'pages/python', 'pages/ramda', 'pages/rdoc', 'pages/react_native', diff --git a/assets/stylesheets/pages/_python.scss b/assets/stylesheets/pages/_python.scss new file mode 100644 index 00000000..78f2d4db --- /dev/null +++ b/assets/stylesheets/pages/_python.scss @@ -0,0 +1,6 @@ +._python { + @extend %sphinx; + + h2 > a, h3 > a, dt[id] > a.external, dt[id] > a.internal { float: none !important; } + } + diff --git a/lib/docs/scrapers/python.rb b/lib/docs/scrapers/python.rb index 8b0289d5..31089dc9 100644 --- a/lib/docs/scrapers/python.rb +++ b/lib/docs/scrapers/python.rb @@ -1,6 +1,6 @@ module Docs class Python < FileScraper - self.type = 'sphinx' + self.type = 'python' self.root_path = 'library/index.html' self.links = { home: 'https://www.python.org/',