21 lines
556 B
Python
21 lines
556 B
Python
![]() |
# setup.py
|
||
|
import os
|
||
|
from setuptools import setup
|
||
|
from setuptools.command.install import install
|
||
|
|
||
|
class BuildMkDocsCommand(install):
|
||
|
"""Custom command to build the MkDocs site."""
|
||
|
def run(self):
|
||
|
print("--> Running custom build command: mkdocs build")
|
||
|
os.system("mkdocs build")
|
||
|
print("--> MkDocs build complete.")
|
||
|
|
||
|
setup(
|
||
|
name='smartup-zero-timeline',
|
||
|
version='1.0.0',
|
||
|
description='A wrapper to build and serve the MkDocs site on Clever Cloud.',
|
||
|
cmdclass={
|
||
|
'build_mkdocs': BuildMkDocsCommand,
|
||
|
}
|
||
|
)
|