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

Updated.Request-HTML #590

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 31 additions & 28 deletions docs/source/_templates/hacks.html
Original file line number Diff line number Diff line change
@@ -1,48 +1,51 @@
<!-- Alabaster (krTheme++) Hacks -->


<!-- CSS Adjustments (I'm very picky.) -->
<style type="text/css">

/* Rezzy requires precise alignment. */
img.logo {margin-left: -20px!important;}
/* Adjust logo alignment */
img.logo {
margin-left: -20px;
}

/* "Quick Search" should be capitalized. */
div#searchbox h3 {text-transform: capitalize;}
/* Capitalize "Quick Search" */
div#searchbox h3 {
text-transform: capitalize;
}

/* Make the document a little wider, less code is cut-off. */
div.document {width: 1008px;}
/* Wider document for better code visibility */
div.document {
max-width: 1008px;
margin: auto; /* Center the document */
}

/* Much-improved spacing around code blocks. */
div.highlight pre {padding: 11px 14px;}
/* Improved padding around code blocks */
div.highlight pre {
padding: 11px 14px;
}

/* Remain Responsive! */
/* Responsive adjustments */
@media screen and (max-width: 1008px) {
div.sphinxsidebar {display: none;}
div.document {width: 100%!important;}

/* Have code blocks escape the document right-margin. */
div.highlight pre {margin-right: -30px;}
div.sphinxsidebar {
display: none;
}
div.document {
width: 100%;
}
div.highlight pre {
margin-right: -30px;
}
}

</style>


<!-- Analytics tracking for Kenneth. -->
<!-- Analytics tracking -->
<script type="text/javascript">
var _gauges = _gauges || [];
(function() {
var t = document.createElement('script');
t.type = 'text/javascript';
var t = document.createElement('script');
t.type = 'text/javascript';
t.async = true;
t.id = 'gauges-tracker';
t.id = 'gauges-tracker';
t.setAttribute('data-site-id', '5a956183ba4ae36e18000033');
t.setAttribute('data-track-path', 'https://track.gaug.es/track.gif');
t.src = 'https://d2fuc4clr7gvcn.cloudfront.net/track.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(t, s);
})();
</script>


<!-- That was not a hack. That was art. -->
122 changes: 70 additions & 52 deletions docs/source/_templates/sidebarintro.html
Original file line number Diff line number Diff line change
@@ -1,61 +1,79 @@
<p class="logo">
<a href="{{ pathto(master_doc) }}">
<img class="logo" src="{{ pathto('_static/requests-html-logo.png', 1) }}" title="https://kennethreitz.org/tattoos"/>
</a>
</p>

<p>
<iframe src="https://ghbtns.com/github-btn.html?user=psf&repo=requests-html&type=watch&count=true&size=large"
allowtransparency="true" frameborder="0" scrolling="0" width="200px" height="35px"></iframe>
</p>

<p>
<strong>Requests-HTML</strong> intends to make parsing HTML (e.g. scraping the web) as
simple and intuitive as possible.
</p>

<h3>Stay Informed</h3>
<p>Receive updates on new releases and upcoming projects.</p>

<p><iframe src="https://ghbtns.com/github-btn.html?user=psf&type=follow&count=false"
allowtransparency="true" frameborder="0" scrolling="0" width="200" height="20"></iframe></p>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
<style>
.algolia-autocomplete{
width: 100%;
height: 1.5em
}
.algolia-autocomplete a{
border-bottom: none !important;
}
#doc_search{
width: 100%;
height: 100%;
}
</style>
<input id="doc_search" placeholder="Search the doc" autofocus/>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js" onload="docsearch({
apiKey: '8fcebdef37e2d888d63daf198ccecd08',
indexName: 'requests-html',
inputSelector: '#doc_search',
debug: false // Set debug to true if you want to inspect the dropdown
})" async></script>

<p><a href="https://twitter.com/kennethreitz" class="twitter-follow-button" data-show-count="false">Follow @kennethreitz</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script></p>
<p><a href="https://saythanks.io/to/kennethreitz">Say Thanks!</a></p>

<h3>Other Projects</h3>

<p>More <a href="https://kennethreitz.org/">Kenneth Reitz</a> projects:</p>
<ul>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Requests-HTML</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
<style>
.algolia-autocomplete {
width: 100%;
height: 1.5rem;
}
.algolia-autocomplete a {
border-bottom: none !important;
}
#doc_search {
width: 100%;
height: 100%;
}
</style>
</head>
<body>

<div class="logo">
<a href="{{ pathto(master_doc) }}">
<img src="{{ pathto('_static/requests-html-logo.png', 1) }}" alt="Requests-HTML Logo" />
</a>
</div>

<div>
<iframe src="https://ghbtns.com/github-btn.html?user=psf&repo=requests-html&type=watch&count=true&size=large"
allow="transparency" width="200" height="35" title="GitHub Watch Button"></iframe>
</div>

<p><strong>Requests-HTML</strong> intends to make parsing HTML (e.g., scraping the web) as simple and intuitive as possible.</p>

<h3>Stay Informed</h3>
<p>Receive updates on new releases and upcoming projects.</p>

<div>
<iframe src="https://ghbtns.com/github-btn.html?user=psf&type=follow&count=false"
allow="transparency" width="200" height="20" title="GitHub Follow Button"></iframe>
</div>

<input id="doc_search" placeholder="Search the docs" autofocus />

<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js" async></script>
<script>
docsearch({
apiKey: '8fcebdef37e2d888d63daf198ccecd08',
indexName: 'requests-html',
inputSelector: '#doc_search',
debug: false
});
</script>

<div>
<a href="https://twitter.com/kennethreitz" class="twitter-follow-button" data-show-count="false">Follow @kennethreitz</a>
<script async src="https://platform.twitter.com/widgets.js"></script>
</div>

<p><a href="https://saythanks.io/to/kennethreitz">Say Thanks!</a></p>

<h3>Other Projects</h3>
<ul>
<li><a href="https://2.python-requests.org/">python-requests.org</a></li>
<li><a href="http://howtopython.org/">howtopython.org</a></li>
<li><a href="http://pipenv.org/">pipenv</a></li>
<li><a href="http://pipenv.org/">pipenv.org</a></li>
<li><a href="https://pep8.org/">pep8.org</a></li>
<li><a href="https://httpbin.org/">httpbin.org</a></li>
<li><a href="https://python-guide.org">The Python Guide</a></li>
<li><a href="https://github.com/timofurrer/maya">Maya: Datetimes for Humans</a></li>
<li><a href="https://github.com/kennethreitz/records">Records: SQL for Humans</a></li>
<li><a href="http://www.git-legit.org">Legit: Git for Humans</a></li>
<li><a href="http://docs.python-tablib.org/en/latest/">Tablib: Tabular Datasets</a></li>
</ul>
</ul>

</body>
</html>
Loading