From 2c4618eecf5417a95410b8332045012261d7a4a7 Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Mon, 27 Jul 2020 20:55:14 -0500 Subject: [PATCH] Starting documents register. --- repository/Grafoscopio/GfUIHelpers.class.st | 8 +++++++- repository/Grafoscopio/GrafoscopioDocs.class.st | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/repository/Grafoscopio/GfUIHelpers.class.st b/repository/Grafoscopio/GfUIHelpers.class.st index 0be3b69..17e3f50 100644 --- a/repository/Grafoscopio/GfUIHelpers.class.st +++ b/repository/Grafoscopio/GfUIHelpers.class.st @@ -17,6 +17,7 @@ Class { ], #classVars : [ 'dockingBar', + 'docsCollection', 'recentNotebooks' ], #classInstVars : [ @@ -24,7 +25,7 @@ Class { 'recentNotebooks', 'helpMenu' ], - #category : 'Grafoscopio-UI' + #category : #'Grafoscopio-UI' } { #category : #adding } @@ -49,6 +50,11 @@ GfUIHelpers class >> addToHelpMenu: aGrafoscopioNotebook [ self updateUI ] +{ #category : #accessing } +GfUIHelpers class >> docsCollection [ + ^ docsCollection ifNil: [docsCollection := OrderedCollection new ] +] + { #category : #updating } GfUIHelpers class >> installDataviz [ "I install the Dataviz package. diff --git a/repository/Grafoscopio/GrafoscopioDocs.class.st b/repository/Grafoscopio/GrafoscopioDocs.class.st index c5c0d5d..9b94e8c 100644 --- a/repository/Grafoscopio/GrafoscopioDocs.class.st +++ b/repository/Grafoscopio/GrafoscopioDocs.class.st @@ -4,7 +4,7 @@ I define the documentation for the Grafoscopio package. Class { #name : #GrafoscopioDocs, #superclass : #GrafoscopioDocumentation, - #category : 'Grafoscopio' + #category : #Grafoscopio } { #category : #operation } @@ -63,4 +63,5 @@ GrafoscopioDocs >> initialize [ addDocument: 'Docs/En/Books/DataActivism/techniques-for-datactivism.ston'; addDocument: 'Docs/En/dev-notes.ston'; addDocument: 'Docs/En/Books/SpecIUFramework/spec-ui-framework.ston'. + GfUIHelpers docsCollection add: self. ]