o
    Ì^½^�  ã                   @   s.   d dl Z d dlZdZdZe  e¡Zdd„ ZdS )é    Nzsite_name: My Docs
aë  # Welcome to MkDocs

For full documentation visit [mkdocs.org](https://www.mkdocs.org).

## Commands

* `mkdocs new [dir-name]` - Create a new project.
* `mkdocs serve` - Start the live-reloading docs server.
* `mkdocs build` - Build the documentation site.
* `mkdocs -h` - Print help message and exit.

## Project layout

    mkdocs.yml    # The configuration file.
    docs/
        index.md  # The documentation homepage.
        ...       # Other markdown pages, images and other files.
c                 C   s  t j | d¡}t j | d¡}t j |d¡}t j |¡r"t d¡ d S t j | ¡s3t d| ¡ t  | ¡ t d|¡ t|ddd	��}| t	¡ W d   ƒ n1 sPw   Y  t j |¡r]d S t d
|¡ t j |¡snt  |¡ t|ddd	��}| t
¡ W d   ƒ d S 1 s†w   Y  d S )NÚdocsz
mkdocs.ymlzindex.mdzProject already exists.zCreating project directory: %szWriting config file: %sÚwzutf-8)ÚencodingzWriting initial docs: %s)ÚosÚpathÚjoinÚexistsÚlogÚinfoÚmkdirÚopenÚwriteÚconfig_textÚ
index_text)Ú
output_dirÚdocs_dirÚconfig_pathÚ
index_pathÚf© r   ú5/usr/lib/python3/dist-packages/mkdocs/commands/new.pyÚnew   s*   

ÿ
"ÿr   )Úloggingr   r   r   Ú	getLoggerÚ__name__r	   r   r   r   r   r   Ú<module>   s    
