Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

polish: Optimize report generation #59

Merged
merged 5 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions Source/Notebook.wl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ BeginPackage["ConnorGray`Organizer`Notebook`"]


InstallNotebookStyles::usage = "InstallNotebookStyles[nb] will set the StyleDefinitions notebook option to the styles used by Organizer."
$OrganizerStylesheet

InsertCellAfterSelection::usage = "InsertCellAfterSelection[cell] will insert cell after the current selection point in the current evaluation notebook."

Expand Down Expand Up @@ -282,6 +283,8 @@ MakeTitleBarCellBoxes[

(*====================================*)

SetFallthroughError[SetNotebookTaggingRules]

SetNotebookTaggingRules[
nbObj_NotebookObject,
documentType_?StringQ
Expand All @@ -294,22 +297,20 @@ SetNotebookTaggingRules[
]
]

SetNotebookTaggingRules[args___] := Throw[Row[{
"Unexpected arguments: ", {args}
}]]

(*====================================*)

InstallNotebookStyles[nb_NotebookObject] := With[{},
SetOptions[nb,
StyleDefinitions -> FrontEnd`FileName[
{"ConnorGray"},
"Organizer.nb",
CharacterEncoding -> "UTF-8"
]
StyleDefinitions -> $OrganizerStylesheet
];
]

$OrganizerStylesheet = FrontEnd`FileName[
{"ConnorGray"},
"Organizer.nb",
CharacterEncoding -> "UTF-8"
]

(*====================================*)
(* Utilities *)
(*====================================*)
Expand Down
3 changes: 3 additions & 0 deletions Source/Organizer.wl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ UpdateLogNotebooks

CreateOrganizerNotebook::usage = "CreateOrganizerNotebook[type, title] creates a new Organizer notebook of the specified type."

CreateQueuesReport::usage = "CreateQueuesReport[] creates a new Queues report from the Log notebooks in the current Workspace > Category."
CreateDailysReport::usage = "CreateDailysReport[] creates a new Dailys report from the Log notebooks in the current Workspace > Category."

PacletInstall /@ PacletObject["ConnorGray/Organizer"]["Dependencies"]

Begin["`Private`"]
Expand Down
Loading