Esempio n. 1
0
 def __init__(self,topic,page_path):
     
     self.topic = topic
     self.text_path = page_path
     self.name = os.path.basename(page_path).replace(".md","")
     self.id = utils.get_safe(self.name)
Esempio n. 2
0
 def __init__(self,topic_path):
 
     self.name = os.path.basename(topic_path)
     self.id = utils.get_safe(self.name)
     self.pages = [Page(self,page_path) for page_path in Topic.get_pages(topic_path)]