Comments (5)
Brainstorming a bit:
- The content generator is not generating the ToC because the
--standalone
option is missing. - Thus, running pandoc again creates a nice ToC wrapped in
<div id="TOC">
- Now, we would need to show the div on the left side with
position: absolute
, and if the screen if small enough, usedisplay: none
. - To determine whether the screen is small enough, something like this should work:
@media all and (max-width: 600px) { div#TOC { ... } }
.
from pep8.org.
Ooh, that'd be fancy. I think I technically know how to pull this off, but it would be a huge struggle.
Any takers? I'll give you cake! 🍰
from pep8.org.
@sergiocorreia correct, I experimented with --standalone
but wasn't happy with its behavior. All the links are present, though, so we could take that section of the output and play with it.
The output of that command has been heavily modified, for presentation.
from pep8.org.
+1 for this request, it would greatly improve the usability of this page!
from pep8.org.
Added in #6.
from pep8.org.
Related Issues (12)
- 2 broken links at http://pep8.org/#function-annotations HOT 2
- TOC wrapped-header line spacing too large HOT 3
- SSL Certificate Hostname Mismatch HOT 2
- Please update your binary operator line break HOT 3
- Sync latest PEP 8 changes HOT 10
- Wide code block looks odd HOT 13
- margin-top of .toc pushes the bottom part of TOC off the screen HOT 1
- transfer back to kennethreitz
- Confusing font used for code comments HOT 2
- pep8 update! HOT 7
- Font issue with headings on MacOS X with Safari HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pep8.org.