Skip to content

Commit

Permalink
feat: deploy librelingo tools output to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
kantord committed Jan 8, 2022
1 parent 37a04d0 commit b778fd0
Show file tree
Hide file tree
Showing 17 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def main():
tdir = "basque-from-english"
links.append(
generate_course(
sdir="LibreLingo",
sdir=".",
outdir=outdir,
tdir=tdir,
course_dir=f"courses/{tdir}",
Expand All @@ -109,12 +109,12 @@ def main():
with open(os.path.join(outdir, tdir, "course.json")) as fh:
courses_data[tdir] = json.load(fh)

for tdir in os.listdir("LibreLingo/temporarily_inactive_courses/"):
for tdir in os.listdir("./temporarily_inactive_courses/"):
if tdir == "basque-from-english":
continue
links.append(
generate_course(
sdir="LibreLingo",
sdir=".",
outdir=outdir,
tdir=tdir,
course_dir=f"temporarily_inactive_courses/{tdir}",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion apps/tools/practice.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import argparse
import random

from lili import guess_path_to_course, collect_data, collect_words, collect_phrases
from librelingo_tools import guess_path_to_course, collect_data, collect_words, collect_phrases
from librelingo_yaml_loader.yaml_loader import load_course


Expand Down
2 changes: 1 addition & 1 deletion apps/tools/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.poetry]
name = "tools"
name = "librelingo-tools"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ librelingo-fakes = { path = "./apps/librelingo_fakes", develop = true }
librelingo-utils = { path = "./apps/librelingo_utils", develop = true }
librelingo-audios = { path = "./apps/librelingo_audios", develop = true }
librelingo-types = { path = "./apps/librelingo_types", develop = true }
librelingo-tools = { path = "./apps/tools", develop = true }
pytest = "^6.2.2"
pytest-mock = "^3.5.1"
pytest-watch = "^4.2.0"
Expand Down

0 comments on commit b778fd0

Please sign in to comment.