Browse Source

Fix header alignment in Python (issue #808)

Beau Carnes 7 years ago
parent
commit
22fa7c81b6

+ 1 - 0
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',

+ 1 - 0
assets/stylesheets/application.css.scss

@@ -79,6 +79,7 @@
         'pages/phpunit',
         'pages/postgres',
         'pages/pug',
+        'pages/python',
         'pages/ramda',
         'pages/rdoc',
         'pages/react_native',

+ 6 - 0
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; }
+  }
+  

+ 1 - 1
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/',