semvec/pypi-packages huggingface dataset:
lektor-markdown-ruby-blocks 0.2.4
Introduces a new syntax to Markdown for generating HTML ruby tags
License: MIT License
Requires Python: >=3.6
Keywords: HTML,Lektor,Markdown,plugin,ruby-tag

# lektor-markdown-ruby-blocks

This is a simple Lektor plugin that adds support for
HTML ruby tags to Markdown.

## Syntax 

To create a ruby tag, use the following **ruby-block** syntax:

```markdown
^^
(歩)[ある]く
^^
```

This will generate the following HTML:
```html
<span class="ruby-line">
  <ruby>歩<rp>(</rp><rt>ある</rt><rp>)</rp></ruby>く
</span>
```

The rendering result:

<p>
<span class="ruby-line">
  <ruby>歩<rp>(</rp><rt>ある</rt><rp>)</rp></ruby>く
</span>
</p>

You can combine adjacent ruby text like this:
```markdown
^^
(自|分)[じ|ぶん]
^^
```

And this will be rendered like this:
```html
<span class="ruby-line">
  <ruby>自<rp>(</rp><rt>じ</rt><rp>)</rp></ruby>
  <ruby>分<rp>(</rp><rt>ぶん</rt><rp>)</rp></ruby>
</span>
```

Rendered output:

<span class="ruby-line">
  <ruby>自<rp>(</rp><rt>じ</rt><rp>)</rp></ruby>
  <ruby>分<rp>(</rp><rt>ぶん</rt><rp>)</rp></ruby>
</span>

### Newline

This plugin will automatically add `<br />` between each line in a ruby-block:
```markdown
^^
(歩)[ある]く
(歩)[ある]く
^^
```
This will output:
```html
<span class="ruby-line">
  <ruby>歩<rp>(</rp><rt>ある</rt><rp>)</rp></ruby>く
</span>
<br />
<span class="ruby-line">
  <ruby>歩<rp>(</rp><rt>ある</rt><rp>)</rp></ruby>く
</span>
```

You can also use `-##-` to create an extra newline in a ruby-block. 
```markdown
^^
(歩)[ある]く
-##-
(歩)[ある]く
^^
```

Output:
```html
<span class="ruby-line">
  <ruby>歩<rp>(</rp><rt>ある</rt><rp>)</rp></ruby>く
</span>
<br />
<br />
<span class="ruby-line">
  <ruby>歩<rp>(</rp><rt>ある</rt><rp>)</rp></ruby>く
</span>
```

### Coloring the text

Additionally, you can add a 6-digit or 8-digit hex RGB code 
after the beginning `^^`, making the rendered content colored 
with specified color.

```markdown
^^#44cc00
(歩)[ある]く
^^
```

This will generate the following HTML pieces:
```html
<span class="ruby-line" style="color: #44cc00">
  <ruby>歩<rp>(</rp><rt>ある</rt><rp>)</rp></ruby>く
</span>
```

### Raw lines
Prepend `% ` &nbsp;to create a raw line. Raw lines are not converted to ruby tags, 
not affected by the color settings, and have a different class.

Example:
```markdown
^^#44cc00
(歩)[ある]く
% (aru)[ku]
^^
```

Output:
```html
<span class="ruby-line" style="color: #44cc00">
  <ruby>歩<rp>(</rp><rt>ある</rt><rp>)</rp></ruby>く
</span>
<br />
<span class="non-ruby-line">
  (aru)[ku]
</span>
```
django-ogcapif 0.1.6
Easily expose your Django models through an OGCAPI-Features endpoint
License: MIT License
Keywords: django,ogc,api,wfs3,features,rest,gis,ogcapif

# django-ogcapif

**WARNING** This is in under development. API will break. Do not use in production.

*django-ogcapif* allows to easily expose your Django models through an OGCAPI-Features endpoint. It is based on Django REST Framework.


## Quickstart

```bash
# copy default conf
cp .env.example .env

# start the stack
docker compose up --build -d

# deploy static files and migrate database
docker compose exec django python manage.py collectstatic --no-input
docker compose exec django python manage.py migrate --no-input

# A convenience start-up Django command is there to populate the database with testdata for each app:
docker compose exec django python manage.py populate_vl
docker compose exec django python manage.py populate_signs_poles
docker compose exec django python manage.py populate_edge_cases

# Wait a little, then check that https://localhost/oapif/collections/signalo_core.pole/items works from your browser
```

## Tests

To run all tests, launch the Compose application as shown in the [Quickstart](#quickstart). Then run

    docker compose exec django python manage.py test

## Authentication & permissions

By default the viewsets under `signalo/core` use the `DjangoModelPermissionsOrAnonReadOnly` permissions class. You can add model permissions when registering their corresponding viewsets, as `permission_classes`. (Refer to https://www.django-rest-framework.org/api-guide/permissions/#api-reference for permission classes). Example:

```python
# models.py
# ----------
from rest_framework import permissions
from django.contrib.gis.db import models
from django_oapif.decorators import register_oapif_viewset

@register_oapif_viewset(
    custom_viewset_attrs={
        "permission_classes": (permissions.DjangoModelPermissionsOrAnonReadOnly,)
    }
)
class MyModel(models.Model):
    ...
```

## Use from QGIS

Once up and running, you can use it from QGIS like this:

- Go to `Layers` > `Add layer` > `Add WFS Layer...`
- Create a new connection
  - URL: `https://localhost/oapif/`
  - Version: `OGC API - Features`
- Click OK and ignore choose to ignore the invalid certificate error and store the exception
- You should see the two layers in the list, select them and choose `add`.

## Run tests

You can run the OGC API conformance test suite like this:

```
docker compose run conformance_test
```

Results will be stored to `_test_outputs\testng\...\emailable-report.html