Skip to content

Commit

Permalink
Added versions
Browse files Browse the repository at this point in the history
This run should be faster due to caching...
  • Loading branch information
serkor1 committed Jan 6, 2025
1 parent 0174547 commit 0ca945f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ project:
type: book
book:
title: '{SLmetrics}: Machine Learning Performance Evaluation on Steroids'
subtitle: Version 0.3-1
author: Serkan Korkmaz
version: 0.3-1
repo-url: https://github.com/serkor1/SLmetrics
repo-actions:
- edit
Expand Down
12 changes: 12 additions & 0 deletions tools/YAML.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
import os
import yaml
import re

def version():
# 1) open DESCRIPTION
with open("DESCRIPTION", 'r') as file:
content = file.read()

# 2) find path from
return re.search(r'^Version:\s*(\S+)', content, re.MULTILINE).group(1)


book_structure = {
"project": {
"type": "book"
},
'book': {
'title': "{SLmetrics}: Machine Learning Performance Evaluation on Steroids",
'subtitle': f"Version {version()}",
'author': "Serkan Korkmaz",
'version': version(),
'repo-url': "https://github.com/serkor1/SLmetrics",
'repo-actions': ["edit", "source", "issue"],
'sharing': ["twitter", "facebook", "linkedin"],
Expand Down

0 comments on commit 0ca945f

Please sign in to comment.