def sphinx_params(py, os):
    """Configuration parameters for sphinx with their default values"""

    params = {
        'KRW_CODE': '/code',
        'SPHINX_VERSION': '3.0.1',
        'SPHINX_AUTOBUILD_VERSION': '0.7.1',
        'SPHINX_RTD_THEME_VERSION': '0.4.3',
        'SPHINX_BREATHE_VERSION' : '4.15.0',
        'SPHINX_AUTOBUILD_HOST': '0.0.0.0',
        'SPHINX_AUTOBUILD_PORT': 8000,
        'SPHINX_AUTOBUILD_FLAGS': '',
        'SPHINX_BUILD_FLAGS': '',
        'SPHINX_SOURCE_DIR': 'docs/sphinx',
        'SPHINX_BUILD_DIR': 'docs/build/html'
    }

    py_major = py.split('.')[0]
    if py_major == '2':
        params['SPHINX_VERSION'] = '1.8.5'
        params['SPHINX_RTD_THEME_VERSION'] = '0.4.2'
        params['SPHINX_BREATHE_VERSION'] = '4.13.0'

    return params