Skip to content

Commit

Permalink
Upgrade docs to sphinx v7
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasdabbas committed Feb 18, 2024
1 parent 3f6a742 commit b91a137
Show file tree
Hide file tree
Showing 112 changed files with 3,471 additions and 16,289 deletions.
Binary file modified docs/_build/doctrees/advertools.ad_create.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.ad_from_string.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.cli.cli.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.cli.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.code_recipes.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.crawlytics.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.emoji.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.extract.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.header_spider.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.image_spider.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.knowledge_graph.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.kw_generate.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.logs.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.regex.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.reverse_dns_lookup.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.robotstxt.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.serp.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.sitemaps.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.spider.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.stopwords.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.survey.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.twitter.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.url_builders.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.urlytics.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.word_frequency.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.word_tokenize.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/advertools.youtube.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/doctrees/include_changelog.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/index.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/modules.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/readme.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 963840fc3381ddee73e277c037c43fc9
config: 6d44d7111b7f1716309db46f215f3039
tags: 645f666f9bcd5a90fca523b33c5a78b7
51 changes: 29 additions & 22 deletions docs/_build/html/_modules/advertools/ad_create.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<html class="writer-html5" lang="en" data-content_root="../../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>advertools.ad_create &mdash; Python</title>
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../../_static/sphinx-thebe.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../_static/sphinx-thebe.css?v=4fa983c6" />


<!--[if lt IE 9]>
<script src="../../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
<script src="../../_static/jquery.js"></script>
<script src="../../_static/underscore.js"></script>
<script src="../../_static/doctools.js"></script>
<script>const THEBE_JS_URL = "https://unpkg.com/[email protected]/lib/index.js"
const thebe_selector = ".thebe,.cell"
const thebe_selector_input = "pre"
const thebe_selector_output = ".output, .cell_output"
</script>
<script async="async" src="../../_static/sphinx-thebe.js"></script>
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=9e420a66"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script>const THEBE_JS_URL = "https://unpkg.com/[email protected]/lib/index.js"; const thebe_selector = ".thebe,.cell"; const thebe_selector_input = "pre"; const thebe_selector_output = ".output, .cell_output"</script>
<script async="async" src="../../_static/sphinx-thebe.js?v=c100c467"></script>
<script async="async" src="https://unpkg.com/[email protected]/lib/index.js"></script>
<script>const THEBE_JS_URL = "https://unpkg.com/[email protected]/lib/index.js"; const thebe_selector = ".thebe,.cell"; const thebe_selector_input = "pre"; const thebe_selector_output = ".output, .cell_output"</script>
<script src="../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
Expand All @@ -32,14 +32,18 @@
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="../../index.html" class="icon icon-home"> advertools



<a href="../../index.html" class="icon icon-home">
advertools
</a>
<div class="version">
0.13.5
0.14.0
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
Expand Down Expand Up @@ -102,9 +106,9 @@
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="../../index.html" class="icon icon-home"></a> &raquo;</li>
<li><a href="../index.html">Module code</a> &raquo;</li>
<li>advertools.ad_create</li>
<li><a href="../../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="../index.html">Module code</a></li>
<li class="breadcrumb-item active">advertools.ad_create</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
Expand Down Expand Up @@ -181,7 +185,9 @@ <h1>Source code for advertools.ad_create</h1><div class="highlight"><pre>
<span class="kn">import</span> <span class="nn">string</span>


<div class="viewcode-block" id="ad_create"><a class="viewcode-back" href="../../advertools.ad_create.html#advertools.ad_create.ad_create">[docs]</a><span class="k">def</span> <span class="nf">ad_create</span><span class="p">(</span><span class="n">template</span><span class="p">,</span> <span class="n">replacements</span><span class="p">,</span> <span class="n">fallback</span><span class="p">,</span> <span class="n">max_len</span><span class="o">=</span><span class="mi">30</span><span class="p">,</span> <span class="n">capitalize</span><span class="o">=</span><span class="kc">True</span><span class="p">):</span>
<div class="viewcode-block" id="ad_create">
<a class="viewcode-back" href="../../advertools.ad_create.html#advertools.ad_create.ad_create">[docs]</a>
<span class="k">def</span> <span class="nf">ad_create</span><span class="p">(</span><span class="n">template</span><span class="p">,</span> <span class="n">replacements</span><span class="p">,</span> <span class="n">fallback</span><span class="p">,</span> <span class="n">max_len</span><span class="o">=</span><span class="mi">30</span><span class="p">,</span> <span class="n">capitalize</span><span class="o">=</span><span class="kc">True</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Insert each of the replacement strings in its place within template.</span>

<span class="sd"> :param str template: a string format template, using braces e.g. &quot;Get the</span>
Expand Down Expand Up @@ -227,6 +233,7 @@ <h1>Source code for advertools.ad_create</h1><div class="highlight"><pre>
<span class="n">final_ad</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">template</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">fallback</span><span class="p">))</span>

<span class="k">return</span> <span class="p">[</span><span class="n">string</span><span class="o">.</span><span class="n">capwords</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> <span class="k">for</span> <span class="n">s</span> <span class="ow">in</span> <span class="n">final_ad</span><span class="p">]</span> <span class="k">if</span> <span class="n">capitalize</span> <span class="k">else</span> <span class="n">final_ad</span></div>

</pre></div>

</div>
Expand All @@ -236,7 +243,7 @@ <h1>Source code for advertools.ad_create</h1><div class="highlight"><pre>
<hr/>

<div role="contentinfo">
<p>&#169; Copyright 2022, Elias Dabbas.</p>
<p>&#169; Copyright 2024, Elias Dabbas.</p>
</div>

Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
Expand Down
51 changes: 29 additions & 22 deletions docs/_build/html/_modules/advertools/ad_from_string.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<html class="writer-html5" lang="en" data-content_root="../../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>advertools.ad_from_string &mdash; Python</title>
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../../_static/sphinx-thebe.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../_static/sphinx-thebe.css?v=4fa983c6" />


<!--[if lt IE 9]>
<script src="../../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
<script src="../../_static/jquery.js"></script>
<script src="../../_static/underscore.js"></script>
<script src="../../_static/doctools.js"></script>
<script>const THEBE_JS_URL = "https://unpkg.com/[email protected]/lib/index.js"
const thebe_selector = ".thebe,.cell"
const thebe_selector_input = "pre"
const thebe_selector_output = ".output, .cell_output"
</script>
<script async="async" src="../../_static/sphinx-thebe.js"></script>
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=9e420a66"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script>const THEBE_JS_URL = "https://unpkg.com/[email protected]/lib/index.js"; const thebe_selector = ".thebe,.cell"; const thebe_selector_input = "pre"; const thebe_selector_output = ".output, .cell_output"</script>
<script async="async" src="../../_static/sphinx-thebe.js?v=c100c467"></script>
<script async="async" src="https://unpkg.com/[email protected]/lib/index.js"></script>
<script>const THEBE_JS_URL = "https://unpkg.com/[email protected]/lib/index.js"; const thebe_selector = ".thebe,.cell"; const thebe_selector_input = "pre"; const thebe_selector_output = ".output, .cell_output"</script>
<script src="../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
Expand All @@ -32,14 +32,18 @@
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="../../index.html" class="icon icon-home"> advertools



<a href="../../index.html" class="icon icon-home">
advertools
</a>
<div class="version">
0.13.5
0.14.0
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
Expand Down Expand Up @@ -102,9 +106,9 @@
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="../../index.html" class="icon icon-home"></a> &raquo;</li>
<li><a href="../index.html">Module code</a> &raquo;</li>
<li>advertools.ad_from_string</li>
<li><a href="../../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="../index.html">Module code</a></li>
<li class="breadcrumb-item active">advertools.ad_from_string</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
Expand Down Expand Up @@ -278,7 +282,9 @@ <h1>Source code for advertools.ad_from_string</h1><div class="highlight"><pre>
<span class="kn">import</span> <span class="nn">string</span>


<div class="viewcode-block" id="ad_from_string"><a class="viewcode-back" href="../../advertools.ad_from_string.html#advertools.ad_from_string.ad_from_string">[docs]</a><span class="k">def</span> <span class="nf">ad_from_string</span><span class="p">(</span><span class="n">s</span><span class="p">,</span> <span class="n">slots</span><span class="o">=</span><span class="p">(</span><span class="mi">30</span><span class="p">,</span> <span class="mi">30</span><span class="p">,</span> <span class="mi">30</span><span class="p">,</span> <span class="mi">90</span><span class="p">,</span> <span class="mi">90</span><span class="p">,</span> <span class="mi">15</span><span class="p">,</span> <span class="mi">15</span><span class="p">),</span> <span class="n">sep</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
<div class="viewcode-block" id="ad_from_string">
<a class="viewcode-back" href="../../advertools.ad_from_string.html#advertools.ad_from_string.ad_from_string">[docs]</a>
<span class="k">def</span> <span class="nf">ad_from_string</span><span class="p">(</span><span class="n">s</span><span class="p">,</span> <span class="n">slots</span><span class="o">=</span><span class="p">(</span><span class="mi">30</span><span class="p">,</span> <span class="mi">30</span><span class="p">,</span> <span class="mi">30</span><span class="p">,</span> <span class="mi">90</span><span class="p">,</span> <span class="mi">90</span><span class="p">,</span> <span class="mi">15</span><span class="p">,</span> <span class="mi">15</span><span class="p">),</span> <span class="n">sep</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
<span class="n">capitalize</span><span class="o">=</span><span class="kc">False</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Convert string :attr:`s` to an ad by splitting it into groups of words.</span>
<span class="sd"> Each group would have a length of at most the allowed length for that slot.</span>
Expand Down Expand Up @@ -331,6 +337,7 @@ <h1>Source code for advertools.ad_from_string</h1><div class="highlight"><pre>
<span class="k">if</span> <span class="n">sep</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span> <span class="k">else</span> <span class="s1">&#39; &#39;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">str_words</span><span class="p">[</span><span class="n">counter</span><span class="p">:]))</span>

<span class="k">return</span> <span class="p">[</span><span class="n">string</span><span class="o">.</span><span class="n">capwords</span><span class="p">(</span><span class="n">x</span><span class="p">)</span> <span class="k">if</span> <span class="n">capitalize</span> <span class="k">else</span> <span class="n">x</span> <span class="k">for</span> <span class="n">x</span> <span class="ow">in</span> <span class="n">text_ad</span><span class="p">]</span></div>

</pre></div>

</div>
Expand All @@ -340,7 +347,7 @@ <h1>Source code for advertools.ad_from_string</h1><div class="highlight"><pre>
<hr/>

<div role="contentinfo">
<p>&#169; Copyright 2022, Elias Dabbas.</p>
<p>&#169; Copyright 2024, Elias Dabbas.</p>
</div>

Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
Expand Down
Loading

0 comments on commit b91a137

Please sign in to comment.