Skip to content

Commit

Permalink
🔖 Release v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gwennlbh committed Apr 13, 2024
1 parent e69a26f commit 4832b42
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 14 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.0.0] - 2024-04-13

### Added

- `completion` command to install completions for your shell!
Expand Down Expand Up @@ -45,9 +47,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Initial release

[Unreleased]: https://github.com/ortfo/db/compare/v0.3.2...HEAD
[1.0.0]: https://github.com/ortfo/db/-/releases/tag/v1.0.0
[0.3.2]: https://github.com/ortfo/db/compare/v0.3.1...v0.3.2
[0.3.1]: https://github.com/ortfo/db/compare/v0.3.0...v0.3.1
[0.3.0]: https://github.com/ortfo/db/compare/v0.2.0...v0.3.0
[0.2.0]: https://github.com/ortfo/db/releases/tag/v0.2.0

[//]: # (C3-2-DKAC:GGH:Rortfo/db:Tv{t})

[unreleased]: https://github.com/ortfo/db/-/compare/v1.0.0...main
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,12 @@ projects/
└── description.md
```



Of course, your actual project files are still where they are and are left untouched (like the main.py file in the above example)



### `description.md` files

Description files are separated in "blocks": blocks are separated by an empty line.
Expand Down Expand Up @@ -163,15 +167,18 @@ Of course, you can use links inside of a paragraphs, but you can also declare is

## Configuration

Simply run `ortfodb build` without giving a configuration filename, and ortfodb will create a default configuration file for you in the current directory.
Put this in `ortfodb.yaml` in the root of your database:


<!-- TODO: document configuration -->

## Extra markdown features

- Abbreviations: `*[YAML]: Yet Another Markup Language`

- Footnotes: `footnote reference[^1]` and then `[^1]: footnote content`

- Smarty pants: typographic replacements (not replaced inside code):

- `--` to –
- `---` to —
- `->` to →
Expand Down
2 changes: 1 addition & 1 deletion meta.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package ortfodb

const Version = "0.3.2"
const Version = "1.0.0"
8 changes: 6 additions & 2 deletions packages/python/ortfodb/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,16 +167,18 @@ class Configuration:
make_gifs: MakeGifs
make_thumbnails: MakeThumbnails
media: Media
projects_at: str
scattered_mode_folder: str
tags: Tags
technologies: Technologies

def __init__(self, build_metadata_file: str, extract_colors: ExtractColors, make_gifs: MakeGifs, make_thumbnails: MakeThumbnails, media: Media, scattered_mode_folder: str, tags: Tags, technologies: Technologies) -> None:
def __init__(self, build_metadata_file: str, extract_colors: ExtractColors, make_gifs: MakeGifs, make_thumbnails: MakeThumbnails, media: Media, projects_at: str, scattered_mode_folder: str, tags: Tags, technologies: Technologies) -> None:
self.build_metadata_file = build_metadata_file
self.extract_colors = extract_colors
self.make_gifs = make_gifs
self.make_thumbnails = make_thumbnails
self.media = media
self.projects_at = projects_at
self.scattered_mode_folder = scattered_mode_folder
self.tags = tags
self.technologies = technologies
Expand All @@ -189,10 +191,11 @@ def from_dict(obj: Any) -> 'Configuration':
make_gifs = MakeGifs.from_dict(obj.get("make gifs"))
make_thumbnails = MakeThumbnails.from_dict(obj.get("make thumbnails"))
media = Media.from_dict(obj.get("media"))
projects_at = from_str(obj.get("projects at"))
scattered_mode_folder = from_str(obj.get("scattered mode folder"))
tags = Tags.from_dict(obj.get("tags"))
technologies = Technologies.from_dict(obj.get("technologies"))
return Configuration(build_metadata_file, extract_colors, make_gifs, make_thumbnails, media, scattered_mode_folder, tags, technologies)
return Configuration(build_metadata_file, extract_colors, make_gifs, make_thumbnails, media, projects_at, scattered_mode_folder, tags, technologies)

def to_dict(self) -> dict:
result: dict = {}
Expand All @@ -201,6 +204,7 @@ def to_dict(self) -> dict:
result["make gifs"] = to_class(MakeGifs, self.make_gifs)
result["make thumbnails"] = to_class(MakeThumbnails, self.make_thumbnails)
result["media"] = to_class(Media, self.media)
result["projects at"] = from_str(self.projects_at)
result["scattered mode folder"] = from_str(self.scattered_mode_folder)
result["tags"] = to_class(Tags, self.tags)
result["technologies"] = to_class(Technologies, self.technologies)
Expand Down
2 changes: 1 addition & 1 deletion packages/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ortfodb"
version = "0.3.2"
version = "1.0.0"
description = "ortfodb client library"
authors = ["Ewen Le Bihan <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion packages/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ortfodb"
version = "0.3.2"
version = "1.0.0"
edition = "2021"
description = "An ortfodb (https://github.com/ortfo/db) client library for Rust."
license = "MIT"
Expand Down
3 changes: 3 additions & 0 deletions packages/rust/src/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ pub struct Configuration {

pub media: Media,

#[serde(rename = "projects at")]
pub projects_at: String,

#[serde(rename = "scattered mode folder")]
pub scattered_mode_folder: String,

Expand Down
6 changes: 4 additions & 2 deletions packages/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ortfo/db",
"version": "0.3.2-3",
"version": "1.0.0",
"description": "ortfodb client library",
"scripts": {
"build": "tsc -p tsconfig.json --declaration --outDir dist"
Expand All @@ -13,7 +13,9 @@
"types": "./dist/index.d.ts"
}
},
"files": ["dist/"],
"files": [
"dist/"
],
"repository": {
"type": "git",
"url": "git+https://github.com/ortfo/db.git"
Expand Down
2 changes: 2 additions & 0 deletions packages/typescript/src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface Configuration {
"make gifs": MakeGifs;
"make thumbnails": MakeThumbnails;
media: Media;
"projects at": string;
"scattered mode folder": string;
tags: Tags;
technologies: Technologies;
Expand Down Expand Up @@ -219,6 +220,7 @@ const typeMap: any = {
{ json: "make gifs", js: "make gifs", typ: r("MakeGifs") },
{ json: "make thumbnails", js: "make thumbnails", typ: r("MakeThumbnails") },
{ json: "media", js: "media", typ: r("Media") },
{ json: "projects at", js: "projects at", typ: "" },
{ json: "scattered mode folder", js: "scattered mode folder", typ: "" },
{ json: "tags", js: "tags", typ: r("Tags") },
{ json: "technologies", js: "technologies", typ: r("Technologies") },
Expand Down
8 changes: 6 additions & 2 deletions schemas/configuration.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/ortfo/db/v0.3.2/schemas/configuration.schema.json",
"$id": "https://raw.githubusercontent.com/ortfo/db/v1.0.0/schemas/configuration.schema.json",
"$ref": "#/$defs/Configuration",
"$defs": {
"Configuration": {
Expand Down Expand Up @@ -55,6 +55,9 @@
"required": [
"repository"
]
},
"projects at": {
"type": "string"
}
},
"additionalProperties": false,
Expand All @@ -67,7 +70,8 @@
"media",
"scattered mode folder",
"tags",
"technologies"
"technologies",
"projects at"
]
},
"ExtractColorsConfiguration": {
Expand Down
2 changes: 1 addition & 1 deletion schemas/database.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/ortfo/db/v0.3.2/schemas/database.schema.json",
"$id": "https://raw.githubusercontent.com/ortfo/db/v1.0.0/schemas/database.schema.json",
"$ref": "#/$defs/Database",
"$defs": {
"AnalyzedWork": {
Expand Down
2 changes: 1 addition & 1 deletion schemas/tags.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/ortfo/db/v0.3.2/schemas/tags.schema.json",
"$id": "https://raw.githubusercontent.com/ortfo/db/v1.0.0/schemas/tags.schema.json",
"$ref": "#/$defs/tags",
"$defs": {
"Tag": {
Expand Down
2 changes: 1 addition & 1 deletion schemas/technologies.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/ortfo/db/v0.3.2/schemas/technologies.schema.json",
"$id": "https://raw.githubusercontent.com/ortfo/db/v1.0.0/schemas/technologies.schema.json",
"$ref": "#/$defs/technologies",
"$defs": {
"Technology": {
Expand Down

0 comments on commit 4832b42

Please sign in to comment.