Skip to content

Commit b0e6174

Browse files
authored
Merge pull request #35 from simple-repository/fix/readme
Fix markdown and add missing info in README
2 parents 923b21f + 8a1f980 commit b0e6174

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

.markdownlint.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
MD013:
2+
line_length: 200

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,11 @@ repos:
55
- id: ruff-check
66
args: ["--fix", "--select=I"]
77
- id: ruff-format
8+
- repo: https://github.com/igorshubovych/markdownlint-cli
9+
rev: v0.46.0
10+
hooks:
11+
- id: markdownlint
12+
args:
13+
- '--config'
14+
- './.markdownlint.yaml'
15+
- '--'

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Built using FastAPI and the [simple-repository](https://github.com/simple-reposi
66

77
## Demo
88

9-
A tech-preview demo is available at https://simple-repository.app.cern.ch/.
9+
A tech-preview demo is available at <https://simple-repository.app.cern.ch/>.
1010

1111
## Usage
1212

@@ -24,39 +24,34 @@ simple-repository-browser
2424

2525
(or alternatively ``python -m simple_repository_browser``)
2626

27-
By default, this will use the repository at PyPI (https://pypi.org/simple/). You can point it to a custom
27+
By default, this will use the repository at PyPI (<https://pypi.org/simple/>). You can point it to a custom
2828
repository by passing the URL to the project list endpoint (the base URL according to PEP-503):
2929

3030
```bash
3131
simple-repository-browser https://my-custom-repository.example.com/foo/simple/
3232
```
3333

34-
## Screenshots:
34+
## Screenshots
3535

3636
Homepage:
3737

3838
![homepage screenshot](https://raw.githubusercontent.com/simple-repository/simple-repository-browser/main/screenshots/home.png)
3939

40-
4140
Search:
4241

4342
![search result](https://raw.githubusercontent.com/simple-repository/simple-repository-browser/main/screenshots/search.png)
4443

45-
4644
Project page:
4745

4846
![example project page](https://raw.githubusercontent.com/simple-repository/simple-repository-browser/main/screenshots/project.png)
4947

50-
51-
5248
## Runtime details
5349

5450
```simple-repository-browser``` exposes a FastAPI application, and it runs the application in a single ``uvicorn`` worker.
5551
Metadata that is computed will be cached in the ``$XDG_CACHE_DIR/simple-repository-browser`` directory. This cache is not
5652
intended to be shared among different repository URLs, and is unlikely to work for multiple ``simple-repository-browser``
5753
versions. There is currently no intelligent cache invalidation for those cases.
5854

59-
6055
## Development
6156

6257
In order to build the ``simple-repository-browser`` you will need access to npm. If not available on the development host,
@@ -82,6 +77,12 @@ And then the normal installation procedure applies:
8277
python -m pip install -e .
8378
```
8479

80+
You may want to disable the indexing to avoid long-running tasks during the development:
81+
82+
```bash
83+
export DISABLE_REPOSITORY_INDEXING=1
84+
```
85+
8586
The browser can be run with:
8687

8788
```bash

0 commit comments

Comments
 (0)