diff --git a/hack/__init__.py b/hack/__init__.py new file mode 100644 index 0000000000..d390cde65c --- /dev/null +++ b/hack/__init__.py @@ -0,0 +1,23 @@ +#!/usr/bin/env python + +# Copyright 2020 The Kubernetes Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +def main(): + pass + + +if __name__ == "__main__": + main() diff --git a/hack/mkdocs_macros/__init__.py b/hack/mkdocs_macros/__init__.py new file mode 100644 index 0000000000..6bf03edf49 --- /dev/null +++ b/hack/mkdocs_macros/__init__.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +# Copyright 2020 The Kubernetes Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +from .feature_stability_table import define_env + + +def main(): + pass + + +if __name__ == "__main__": + main() diff --git a/mkdocs_macros.py b/hack/mkdocs_macros/feature_stability_table.py similarity index 97% rename from mkdocs_macros.py rename to hack/mkdocs_macros/feature_stability_table.py index 7e9067004d..c4f83da19f 100644 --- a/mkdocs_macros.py +++ b/hack/mkdocs_macros/feature_stability_table.py @@ -14,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# -*- coding: utf-8 -*- - def define_env(env): """Hook function""" @@ -64,5 +62,5 @@ def main(): pass -if __name__ == '__main__': +if __name__ == "__main__": main() diff --git a/mkdocs.yml b/mkdocs.yml index b94de65948..2b6b8f4527 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -27,7 +27,7 @@ theme: plugins: - search - macros: - module_name: mkdocs_macros + module_name: hack.mkdocs_macros extra_css: [extra.css] nav: