Skip to content

Commit d68c11c

Browse files
authored
Merge pull request #2 from swerik-project/dev
first version
2 parents 96d4cb8 + f3312f3 commit d68c11c

14 files changed

Lines changed: 3001 additions & 200 deletions

File tree

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release new version
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: [3.8]
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
19+
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. - name: Set up Python ${{ matrix.python-version }}
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install .
28+
pip install poetry
29+
pip install getch
30+
pip install tqdm
31+
32+
- name: Build and publish module
33+
env: # authentication
34+
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
35+
run: |
36+
VERSION=$(echo ${{ github.ref }} | cut -d "v" -f 2 | xargs)
37+
echo "Change module version to $VERSION"
38+
poetry version $VERSION
39+
poetry build
40+
poetry publish -u "__token__" -p $PYPI_API_TOKEN
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
/* monokai color scheme, see pdoc/template/README.md */
2+
pre { line-height: 125%; }
3+
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 20px; }
4+
.pdoc-code .hll { background-color: #49483e }
5+
.pdoc-code { background: #272822; color: #f8f8f2 }
6+
.pdoc-code .c { color: #75715e } /* Comment */
7+
.pdoc-code .err { color: #960050; background-color: #1e0010 } /* Error */
8+
.pdoc-code .esc { color: #f8f8f2 } /* Escape */
9+
.pdoc-code .g { color: #f8f8f2 } /* Generic */
10+
.pdoc-code .k { color: #66d9ef } /* Keyword */
11+
.pdoc-code .l { color: #ae81ff } /* Literal */
12+
.pdoc-code .n { color: #f8f8f2 } /* Name */
13+
.pdoc-code .o { color: #f92672 } /* Operator */
14+
.pdoc-code .x { color: #f8f8f2 } /* Other */
15+
.pdoc-code .p { color: #f8f8f2 } /* Punctuation */
16+
.pdoc-code .ch { color: #75715e } /* Comment.Hashbang */
17+
.pdoc-code .cm { color: #75715e } /* Comment.Multiline */
18+
.pdoc-code .cp { color: #75715e } /* Comment.Preproc */
19+
.pdoc-code .cpf { color: #75715e } /* Comment.PreprocFile */
20+
.pdoc-code .c1 { color: #75715e } /* Comment.Single */
21+
.pdoc-code .cs { color: #75715e } /* Comment.Special */
22+
.pdoc-code .gd { color: #f92672 } /* Generic.Deleted */
23+
.pdoc-code .ge { color: #f8f8f2; font-style: italic } /* Generic.Emph */
24+
.pdoc-code .gr { color: #f8f8f2 } /* Generic.Error */
25+
.pdoc-code .gh { color: #f8f8f2 } /* Generic.Heading */
26+
.pdoc-code .gi { color: #a6e22e } /* Generic.Inserted */
27+
.pdoc-code .go { color: #66d9ef } /* Generic.Output */
28+
.pdoc-code .gp { color: #f92672; font-weight: bold } /* Generic.Prompt */
29+
.pdoc-code .gs { color: #f8f8f2; font-weight: bold } /* Generic.Strong */
30+
.pdoc-code .gu { color: #75715e } /* Generic.Subheading */
31+
.pdoc-code .gt { color: #f8f8f2 } /* Generic.Traceback */
32+
.pdoc-code .kc { color: #66d9ef } /* Keyword.Constant */
33+
.pdoc-code .kd { color: #66d9ef } /* Keyword.Declaration */
34+
.pdoc-code .kn { color: #f92672 } /* Keyword.Namespace */
35+
.pdoc-code .kp { color: #66d9ef } /* Keyword.Pseudo */
36+
.pdoc-code .kr { color: #66d9ef } /* Keyword.Reserved */
37+
.pdoc-code .kt { color: #66d9ef } /* Keyword.Type */
38+
.pdoc-code .ld { color: #e6db74 } /* Literal.Date */
39+
.pdoc-code .m { color: #ae81ff } /* Literal.Number */
40+
.pdoc-code .s { color: #e6db74 } /* Literal.String */
41+
.pdoc-code .na { color: #a6e22e } /* Name.Attribute */
42+
.pdoc-code .nb { color: #f8f8f2 } /* Name.Builtin */
43+
.pdoc-code .nc { color: #a6e22e } /* Name.Class */
44+
.pdoc-code .no { color: #66d9ef } /* Name.Constant */
45+
.pdoc-code .nd { color: #a6e22e } /* Name.Decorator */
46+
.pdoc-code .ni { color: #f8f8f2 } /* Name.Entity */
47+
.pdoc-code .ne { color: #a6e22e } /* Name.Exception */
48+
.pdoc-code .nf { color: #a6e22e } /* Name.Function */
49+
.pdoc-code .nl { color: #f8f8f2 } /* Name.Label */
50+
.pdoc-code .nn { color: #f8f8f2 } /* Name.Namespace */
51+
.pdoc-code .nx { color: #a6e22e } /* Name.Other */
52+
.pdoc-code .py { color: #f8f8f2 } /* Name.Property */
53+
.pdoc-code .nt { color: #f92672 } /* Name.Tag */
54+
.pdoc-code .nv { color: #f8f8f2 } /* Name.Variable */
55+
.pdoc-code .ow { color: #f92672 } /* Operator.Word */
56+
.pdoc-code .w { color: #f8f8f2 } /* Text.Whitespace */
57+
.pdoc-code .mb { color: #ae81ff } /* Literal.Number.Bin */
58+
.pdoc-code .mf { color: #ae81ff } /* Literal.Number.Float */
59+
.pdoc-code .mh { color: #ae81ff } /* Literal.Number.Hex */
60+
.pdoc-code .mi { color: #ae81ff } /* Literal.Number.Integer */
61+
.pdoc-code .mo { color: #ae81ff } /* Literal.Number.Oct */
62+
.pdoc-code .sa { color: #e6db74 } /* Literal.String.Affix */
63+
.pdoc-code .sb { color: #e6db74 } /* Literal.String.Backtick */
64+
.pdoc-code .sc { color: #e6db74 } /* Literal.String.Char */
65+
.pdoc-code .dl { color: #e6db74 } /* Literal.String.Delimiter */
66+
.pdoc-code .sd { color: #e6db74 } /* Literal.String.Doc */
67+
.pdoc-code .s2 { color: #e6db74 } /* Literal.String.Double */
68+
.pdoc-code .se { color: #ae81ff } /* Literal.String.Escape */
69+
.pdoc-code .sh { color: #e6db74 } /* Literal.String.Heredoc */
70+
.pdoc-code .si { color: #e6db74 } /* Literal.String.Interpol */
71+
.pdoc-code .sx { color: #e6db74 } /* Literal.String.Other */
72+
.pdoc-code .sr { color: #e6db74 } /* Literal.String.Regex */
73+
.pdoc-code .s1 { color: #e6db74 } /* Literal.String.Single */
74+
.pdoc-code .ss { color: #e6db74 } /* Literal.String.Symbol */
75+
.pdoc-code .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
76+
.pdoc-code .fm { color: #a6e22e } /* Name.Function.Magic */
77+
.pdoc-code .vc { color: #f8f8f2 } /* Name.Variable.Class */
78+
.pdoc-code .vg { color: #f8f8f2 } /* Name.Variable.Global */
79+
.pdoc-code .vi { color: #f8f8f2 } /* Name.Variable.Instance */
80+
.pdoc-code .vm { color: #f8f8f2 } /* Name.Variable.Magic */

docs/dark-mode/theme.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
:root {
2+
--pdoc-background: #212529;
3+
}
4+
5+
.pdoc {
6+
--text: #f7f7f7;
7+
--muted: #9d9d9d;
8+
--link: #58a6ff;
9+
--link-hover: #3989ff;
10+
--code: #333;
11+
--active: #555;
12+
13+
--accent: #343434;
14+
--accent2: #555;
15+
16+
--nav-hover: rgba(0, 0, 0, 0.1);
17+
--name: #77C1FF;
18+
--def: #0cdd0c;
19+
--annotation: #00c037;
20+
}

docs/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="refresh" content="0; url=./swedish_dehyphenator.html"/>
6+
</head>
7+
</html>

docs/search.js

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/swedish_dehyphenator.html

Lines changed: 234 additions & 0 deletions
Large diffs are not rendered by default.

docs/swedish_dehyphenator/config.html

Lines changed: 495 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
6+
<meta name="generator" content="pdoc3 0.11.0">
7+
<title>swedish_dehyphenator API documentation</title>
8+
<meta name="description" content="">
9+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/13.0.0/sanitize.min.css" integrity="sha512-y1dtMcuvtTMJc1yPgEqF0ZjQbhnc/bFhyvIyVNb9Zk5mIGtqVaAB1Ttl28su8AvFMOY0EwRbAe+HCLqj6W7/KA==" crossorigin>
10+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/13.0.0/typography.min.css" integrity="sha512-Y1DYSb995BAfxobCkKepB1BqJJTPrOp3zPL74AWFugHHmmdcvO+C48WLrUOlhGMc0QG7AE3f7gmvvcrmX2fDoA==" crossorigin>
11+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css" crossorigin>
12+
<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:1.5em;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:2em 0 .50em 0}h3{font-size:1.4em;margin:1.6em 0 .7em 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .2s ease-in-out}a:visited{color:#503}a:hover{color:#b62}.title code{font-weight:bold}h2[id^="header-"]{margin-top:2em}.ident{color:#900;font-weight:bold}pre code{font-size:.8em;line-height:1.4em;padding:1em;display:block}code{background:#f3f3f3;font-family:"DejaVu Sans Mono",monospace;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em 1em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>
13+
<style media="screen and (min-width: 700px)">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul ul{padding-left:1em}.toc > ul > li{margin-top:.5em}}</style>
14+
<style media="print">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:" (" attr(href) ")";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>
15+
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js" integrity="sha512-D9gUyxqja7hBtkWpPWGt9wfbfaMGVt9gnyCvYa+jojwwPHLCzUm5i8rpk7vD7wNee9bA35eYIjobYPaQuKS1MQ==" crossorigin></script>
16+
<script>window.addEventListener('DOMContentLoaded', () => {
17+
hljs.configure({languages: ['bash', 'css', 'diff', 'graphql', 'ini', 'javascript', 'json', 'plaintext', 'python', 'python-repl', 'rust', 'shell', 'sql', 'typescript', 'xml', 'yaml']});
18+
hljs.highlightAll();
19+
})</script>
20+
</head>
21+
<body>
22+
<main>
23+
<article id="content">
24+
<header>
25+
<h1 class="title">Package <code>swedish_dehyphenator</code></h1>
26+
</header>
27+
<section id="section-intro">
28+
</section>
29+
<section>
30+
<h2 class="section-title" id="header-submodules">Sub-modules</h2>
31+
<dl>
32+
<dt><code class="name"><a title="swedish_dehyphenator.config" href="config.html">swedish_dehyphenator.config</a></code></dt>
33+
<dd>
34+
<div class="desc"><p>Set configuration options for swedish_dehyphenator.</p></div>
35+
</dd>
36+
<dt><code class="name"><a title="swedish_dehyphenator.swedish_dehyphenator" href="swedish_dehyphenator.html">swedish_dehyphenator.swedish_dehyphenator</a></code></dt>
37+
<dd>
38+
<div class="desc"><p>A python program to remove end-line hyphenations from large texts …</p></div>
39+
</dd>
40+
</dl>
41+
</section>
42+
<section>
43+
</section>
44+
<section>
45+
</section>
46+
<section>
47+
</section>
48+
</article>
49+
<nav id="sidebar">
50+
<div class="toc">
51+
<ul></ul>
52+
</div>
53+
<ul id="index">
54+
<li><h3><a href="#header-submodules">Sub-modules</a></h3>
55+
<ul>
56+
<li><code><a title="swedish_dehyphenator.config" href="config.html">swedish_dehyphenator.config</a></code></li>
57+
<li><code><a title="swedish_dehyphenator.swedish_dehyphenator" href="swedish_dehyphenator.html">swedish_dehyphenator.swedish_dehyphenator</a></code></li>
58+
</ul>
59+
</li>
60+
</ul>
61+
</nav>
62+
</main>
63+
<footer id="footer">
64+
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.11.0</a>.</p>
65+
</footer>
66+
</body>
67+
</html>

0 commit comments

Comments
 (0)