Skip to content

Commit 3a3143c

Browse files
committed
tex2lambda —> in2lambda
1 parent 1492e88 commit 3a3143c

44 files changed

Lines changed: 95 additions & 97 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
- name: Linting Checks
2626
run: |
2727
black --check .
28-
isort --check-only tex2lambda docs
29-
pydocstyle --convention=google tex2lambda
28+
isort --check-only in2lambda docs
29+
pydocstyle --convention=google in2lambda
3030
- name: pytest
31-
run: pytest --cov-report=xml:coverage.xml --cov=tex2lambda --doctest-modules tex2lambda
31+
run: pytest --cov-report=xml:coverage.xml --cov=in2lambda --doctest-modules in2lambda
3232
- name: Upload coverage to Codecov
3333
uses: codecov/codecov-action@v3
3434
with:

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ ENV PYTHONUNBUFFERED=1 \
1010
WORKDIR /app
1111

1212
# README required since referenced by pyproject.toml
13-
COPY ./pyproject.toml ./README.md ./tex2lambda /app/
14-
COPY ./tex2lambda /app/tex2lambda/
13+
COPY ./pyproject.toml ./README.md ./in2lambda /app/
14+
COPY ./in2lambda /app/in2lambda/
1515

1616
RUN pip install .
1717

1818
FROM python:3.11.4-alpine
1919

20-
COPY --from=python-builder /usr/local/bin/tex2lambda /usr/local/bin/tex2lambda
20+
COPY --from=python-builder /usr/local/bin/in2lambda /usr/local/bin/in2lambda
2121
COPY --from=python-builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
2222

2323
RUN apk add --no-cache pandoc

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# tex2lambda
1+
# in2lambda
22

3-
![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/lambda-feedback/tex2lambda/deploy-docs.yml?style=flat-square&logo=github&label=docs)
3+
![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/lambda-feedback/in2lambda/deploy-docs.yml?style=flat-square&logo=github&label=docs)
44

5-
tex2lambda is a Python command line tool and library that automagically uploads questions to [Lambda Feedback](https://lambdafeedback.com/).
5+
in2lambda is a Python command line tool and library that automagically uploads questions to [Lambda Feedback](https://lambdafeedback.com/).
66

7-
Find out more in the [documentation](https://lambda-feedback.github.io/tex2lambda/).
7+
Find out more in the [documentation](https://lambda-feedback.github.io/in2lambda/).
88

99
```
10-
$ pip install tex2lambda
10+
$ pip install in2lambda
1111
```

docs/source/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# -- Project information -----------------------------------------------------
2626
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
2727

28-
project = "tex2lambda"
28+
project = "in2lambda"
2929
author = "Lambda Feedback"
3030
copyright = f"{datetime.now().year}, {author}"
3131

@@ -51,7 +51,7 @@
5151

5252
myst_enable_extensions = ["colon_fence"]
5353

54-
ogp_site_url = "https://lambda-feedback.github.io/tex2lambda/"
54+
ogp_site_url = "https://lambda-feedback.github.io/in2lambda/"
5555
ogp_image = "./_static/icons/social.png"
5656
ogp_social_cards = {
5757
"image": "./_static/icons/social.png",
@@ -68,7 +68,7 @@
6868
# -- Options for HTML output -------------------------------------------------
6969
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
7070

71-
html_title = "tex2lambda"
71+
html_title = "in2lambda"
7272
html_theme = "furo"
7373
html_favicon = "./_static/icons/favicon.png"
7474
html_theme_options = {
@@ -78,7 +78,7 @@
7878
"footer_icons": [
7979
{
8080
"name": "GitHub",
81-
"url": "https://github.com/lambda-feedback/tex2lambda",
81+
"url": "https://github.com/lambda-feedback/in2lambda",
8282
"html": """
8383
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16">
8484
<path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path>

docs/source/contributing/documentation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ When writing a new page, be sure to include it in a tree!
2626

2727
## Filters
2828

29-
The [documentation for the filters](../filters/index) is auto-generated for each one in `tex2lambda/filters` every time the docs are built.
29+
The [documentation for the filters](../filters/index) is auto-generated for each one in `in2lambda/filters` every time the docs are built.
3030

3131
The process uses data from two files present in each filter's source code directory:
3232

@@ -38,17 +38,17 @@ There should then be no need to write explicit documentation for any new filters
3838
:::{admonition} How the Auto-Generation Works
3939
:class: dropdown
4040

41-
A script was written in `docs/filters.py` that generate the docs. It's called in `docs/conf.py` which is loaded when building the docs. The filters script goes through each directory present in `tex2lambda/filters` to determine the docstring (via `__doc__`) and compile the LaTeX file present.
41+
A script was written in `docs/filters.py` that generate the docs. It's called in `docs/conf.py` which is loaded when building the docs. The filters script goes through each directory present in `in2lambda/filters` to determine the docstring (via `__doc__`) and compile the LaTeX file present.
4242

4343
Compiled PDFs are stored in `docs/_static/pdfs` and the generated RST docs are put in `docs/filters/_autosummary`. `docs/filters/index.md` includes these autogenerated files in the website via a [table of contents tree](https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-toctree).
4444
:::
4545

4646
## Reference
4747

48-
The [CLT reference](../reference/command-line) is generated based on the output of `tex2lambda --help` via [sphinx-click](https://sphinx-click.readthedocs.io/en/latest/).
48+
The [CLT reference](../reference/command-line) is generated based on the output of `in2lambda --help` via [sphinx-click](https://sphinx-click.readthedocs.io/en/latest/).
4949

5050
[API documentation](../reference/library) is built based on [docstrings](https://peps.python.org/pep-0257/#what-is-a-docstring) found within the code base. This is done using [sphinx.ext.autosummary](https://www.sphinx-doc.org/en/master/usage/extensions/autosummary.html).
5151

5252
:::{tip}
53-
See the [Module docs](../reference/_autosummary/tex2lambda.api.module.Module) and the source code buttons on its page for good examples on how to write the docstrings effectively.
53+
See the [Module docs](../reference/_autosummary/in2lambda.api.module.Module) and the source code buttons on its page for good examples on how to write the docstrings effectively.
5454
:::

docs/source/contributing/high_level.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
```{eval-rst}
44
.. graphviz:: ../diagrams/workflow.dot
5-
:alt: tex2lambda Workflow Overview Diagram
5+
:alt: in2lambda Workflow Overview Diagram
66
:align: right
77
```
88

99
A [pandoc filter](https://pandoc.org/filters.html) is written using [panflute](https://github.com/sergiocorreia/panflute) to parse different file structures. For instance, maybe questions are denoted using lists, or the answers directly follow the question.
1010

11-
Whilst running the filter, python functions which are part of the tex2lambda API help denote where text extracted from the file should go in a Lambda Feedback question. This is represented internally as separate objects for each part, question and module.
11+
Whilst running the filter, python functions which are part of the in2lambda API help denote where text extracted from the file should go in a Lambda Feedback question. This is represented internally as separate objects for each part, question and module.
1212

1313
Finally, `json_convert` takes the questions in a python module object and converts it into zip files that can be imported through Lambda Feedback.

docs/source/contributing/installation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
The standard installation method can be found in the [Quickstart](../quickstart). These instructions are for development purposes.
55
:::
66

7-
Fork the [GitHub project](https://github.com/lambda-feedback/tex2lambda) to your account. Then, run the following with your GitHub handle in place of GITHUB_NAME:
7+
Fork the [GitHub project](https://github.com/lambda-feedback/in2lambda) to your account. Then, run the following with your GitHub handle in place of GITHUB_NAME:
88

99
```shell
10-
$ git clone https://github.com/GITHUB_NAME/tex2lambda
11-
$ cd tex2lambda
10+
$ git clone https://github.com/GITHUB_NAME/in2lambda
11+
$ cd in2lambda
1212
```
1313

1414
The project can then be installed using [poetry](https://python-poetry.org/):
@@ -17,13 +17,13 @@ The project can then be installed using [poetry](https://python-poetry.org/):
1717
$ poetry install
1818
$ poetry shell
1919
$ pre-commit install
20-
$ tex2lambda --help
20+
$ in2lambda --help
2121
```
2222

2323
:::{admonition} Using pip
2424
:class: dropdown
2525

26-
Using pip alone is not recommended since it only installs the necessary dependencies to run `tex2lambda`, without any developer/documentation libraries. However, it could be useful for testing small modifications.
26+
Using pip alone is not recommended since it only installs the necessary dependencies to run `in2lambda`, without any developer/documentation libraries. However, it could be useful for testing small modifications.
2727

2828
First, we create and activate a [virtual environment](https://docs.python.org/3/library/venv.html):
2929

@@ -36,6 +36,6 @@ Then install in [editable mode](https://pip.pypa.io/en/stable/topics/local-proje
3636

3737
```shell
3838
$ pip install -e .
39-
$ tex2lambda --help
39+
$ in2lambda --help
4040
```
4141
:::

docs/source/diagrams/workflow.dot

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
digraph tex2lambda_workflow {
2-
subgraph cluster_tex2lambda {
1+
digraph in2lambda_workflow {
2+
subgraph cluster_in2lambda {
33
color = blue;
44

55
labelloc = "b";
66
labeljust = "l";
77

88
style = "rounded";
9-
label = <<b>tex2lambda</b>>;
9+
label = <<b>in2lambda</b>>;
1010

1111
filters [label = "Pandoc Filter";fillcolor = "#F0F0F0";];
1212
python_object [label = <<table border='0' cellborder='1' cellspacing='0' cellpadding='5'>

docs/source/filters.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import subprocess
66
from pathlib import Path
77

8-
import tex2lambda.filters
8+
import in2lambda.filters
99

1010

1111
def generate_filters_docs():
@@ -21,16 +21,16 @@ def generate_filters_docs():
2121

2222
filters = (
2323
i.name
24-
for i in pkgutil.iter_modules(tex2lambda.filters.__path__)
24+
for i in pkgutil.iter_modules(in2lambda.filters.__path__)
2525
if i.name[0] != "_"
2626
)
2727

2828
for filter_name in filters:
2929
filter_module = importlib.import_module(
30-
f"tex2lambda.filters.{filter_name}.filter"
30+
f"in2lambda.filters.{filter_name}.filter"
3131
)
3232

33-
relative_directory = f"../../../../tex2lambda/filters/{filter_name}"
33+
relative_directory = f"../../../../in2lambda/filters/{filter_name}"
3434
"""Where to find the filter's directory relative to `autosummary_directory`.
3535
3636
For some reason, literalinclude requires it to be relative.

docs/source/filters/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 📚 Filters
22

3-
Behind the scenes, tex2lambda makes use of [pandoc filters](https://pandoc.org/filters.html) to parse the question files.
3+
Behind the scenes, in2lambda makes use of [pandoc filters](https://pandoc.org/filters.html) to parse the question files.
44

55
:::{admonition} Why not manually parse the questions?
66
:class: dropdown

0 commit comments

Comments
 (0)