1769192878
This commit is contained in:
@@ -60,7 +60,7 @@ def validate-input [subject: string, shortcode: string, number?: int] {
|
||||
|
||||
# Check subject exists (case insensitive)
|
||||
let subject_lower = ($subject | str downcase)
|
||||
let subjects = (open $subjects_toml | get subjects | columns)
|
||||
let subjects = (open $subjects_toml | columns)
|
||||
if $subject_lower not-in $subjects {
|
||||
error make -u {
|
||||
msg: $"Subject '($subject)' not found in configuration"
|
||||
@@ -74,7 +74,7 @@ def generate-doc-toml [shortcode: string, subject: string, target_dir: string, n
|
||||
let defaults = (open $"($config_dir)/defaults.toml")
|
||||
let subjects = (open $"($config_dir)/subjects.toml")
|
||||
|
||||
let subject_data = ($subjects | get subjects | get $subject)
|
||||
let subject_data = ($subjects | get $subject)
|
||||
let work_type = ($defaults | get work_types | try { get $shortcode } catch { $shortcode })
|
||||
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[subjects.erv]
|
||||
[erv]
|
||||
name = "ЕРВ"
|
||||
full_name = "Електрорадіовимірювання"
|
||||
mentors = [
|
||||
@@ -6,14 +6,14 @@ mentors = [
|
||||
{name = "Франко І. Я.", degree = "Асистент кафедри ПІ", gender = "m"}
|
||||
]
|
||||
|
||||
[subjects.fiz]
|
||||
[fiz]
|
||||
name = "ФІЗ"
|
||||
full_name = "Фізика"
|
||||
mentors = [
|
||||
{name = "Шевченко Т. Г.", degree = "Доцент кафедри ПІ", gender = "m"}
|
||||
]
|
||||
|
||||
[subjects.vm]
|
||||
[vm]
|
||||
name = "ВМ"
|
||||
full_name = "Вища математика"
|
||||
mentors = []
|
||||
|
||||
Reference in New Issue
Block a user