Skip to content

Commit

Permalink
Documentation + cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Oct 12, 2023
1 parent 90a4a10 commit ade99f0
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 6 deletions.
13 changes: 13 additions & 0 deletions scraper/src/kolibri2zim/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@


class TopicSubSection(BaseModel):
"""One subclass to serialize data about one Kolibri topic"""

slug: str
title: str
description: str
Expand All @@ -10,6 +12,8 @@ class TopicSubSection(BaseModel):


class TopicSection(BaseModel):
"""Another subclass to serialize data about one Kolibri topic"""

slug: str
title: str
description: str
Expand All @@ -19,6 +23,13 @@ class TopicSection(BaseModel):


class Topic(BaseModel):
"""Class to serialize data about one Kolibri topic
One topic is composed of parents, sections and subsections.
This is already preprocessed information, closely adapted
to current UI needs
"""

parents: list[str]
title: str
description: str
Expand All @@ -27,4 +38,6 @@ class Topic(BaseModel):


class Channel(BaseModel):
"""Class to serialize data about the Kolibri channel"""

root: str
4 changes: 2 additions & 2 deletions scraper/src/kolibri2zim/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
<div class="container">
{% if false and parents_count %}
<!-- This navigation is broken due to the move to Vue.JS / slug-based URLs
This won't be needed anyway once the move to Vue.JS is finished and we
can probably live without it until then (or fix it later on).
To be fixed by https://github.com/openzim/kolibri/issues/64
-->
<nav style="--bs-breadcrumb-divider: '>';" aria-label="breadcrumb">
<ol class="breadcrumb">
Expand All @@ -39,6 +38,7 @@

<!-- This is a hack for epub rendering due to a probable bug in epub.js
The bug is that iframe is moved up when the epub is rendered
To be fixed by https://github.com/openzim/kolibri/issues/63
-->
{% if is_epub %}
<p style="height: 30px;">&nbsp;</p>
Expand Down
1 change: 0 additions & 1 deletion zimui/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
node_modules

public/fcc
dist
dist-ssr
*.l
Expand Down
4 changes: 2 additions & 2 deletions zimui/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/x-icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Kolibri channel in a ZIM</title>
</head>
Expand Down
1 change: 0 additions & 1 deletion zimui/public/vite.svg

This file was deleted.

Binary file not shown.
Binary file not shown.

0 comments on commit ade99f0

Please sign in to comment.