Curts0 / PyTabular

Connect to Tabular Models via Python
https://curts0.github.io/PyTabular/
MIT License
67 stars 11 forks source link

[Feature] Generate basic Markdown files for Docusaurus (v0.1) #68

Closed Daandamhuis closed 1 year ago

Daandamhuis commented 1 year ago

So this is the basic implementation of the generation of documentation markdown files. These files will be saved in the docs folder, but it can be changed when initializing the "docs".

Wishlist:

@Curts0: Can you look it over, and see what you think?

import pytabular

server = '<Server Address>'
catalog = '<Model Name>'

model = pytabular.Tabular(f"{server};Catalog={catalog}")

docs = pytabular.ModelDocumenter(model=model)
docs.set_translations(enable_translations=True, culture="en-US")
docs.generate_documentation_pages()
docs.save_documentation()
Curts0 commented 1 year ago

Hey @Daandamhuis, glad to see you got something working for documenting. I've been busy at work the past few days. I'll definitely take a look in the next few days. Would be great to add this in.