2025-07-10 01:31:05 +00:00
|
|
|
import os
|
2025-07-07 11:32:30 +00:00
|
|
|
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.',
|
2025-07-10 01:27:43 +00:00
|
|
|
py_modules=[], # ⬅️ Important: disable auto-discovery
|
2025-07-07 11:32:30 +00:00
|
|
|
cmdclass={
|
2025-07-07 12:39:20 +00:00
|
|
|
'mkdocs': BuildMkDocsCommand,
|
|
|
|
}
|
2025-07-07 11:32:30 +00:00
|
|
|
)
|
2025-07-10 01:27:43 +00:00
|
|
|
|