def get_global_context(nav, config):
 extra_javascript = utils.create_media_urls(nav, config[u'extra_javascript'])
 extra_css = utils.create_media_urls(nav, config[u'extra_css'])
 timestamp = int(os.environ.get(u'SOURCE_DATE_EPOCH', timegm(datetime.utcnow().utctimetuple())))
 return {u'nav': nav, u'base_url': nav.url_context.make_relative(u'/'), u'extra_css': extra_css, u'extra_javascript': extra_javascript, u'mkdocs_version': mkdocs.__version__, u'build_date_utc': datetime.utcfromtimestamp(timestamp), u'config': config, u'site_name': config[u'site_name'], u'site_url': config[u'site_url'], u'site_author': config[u'site_author'], u'homepage_url': nav.homepage.url, u'page_description': config[u'site_description'], u'favicon': config[u'site_favicon'], u'repo_url': config[u'repo_url'], u'repo_name': config[u'repo_name'], u'include_nav': config[u'include_nav'], u'include_next_prev': config[u'include_next_prev'], u'copyright': config[u'copyright'], u'google_analytics': config[u'google_analytics']}

def get_global_context ( nav , config ) : extra_javascript = utils . create_media_urls ( nav , config [ u'extra_javascript' ] ) extra_css = utils . create_media_urls ( nav , config [ u'extra_css' ] ) timestamp = int ( os . environ . get ( u'SOURCE_DATE_EPOCH' , timegm ( datetime . utcnow ( ) . utctimetuple ( ) ) ) ) return { u'nav' : nav , u'base_url' : nav . url_context . make_relative ( u'/' ) , u'extra_css' : extra_css , u'extra_javascript' : extra_javascript , u'mkdocs_version' : mkdocs . __version__ , u'build_date_utc' : datetime . utcfromtimestamp ( timestamp ) , u'config' : config , u'site_name' : config [ u'site_name' ] , u'site_url' : config [ u'site_url' ] , u'site_author' : config [ u'site_author' ] , u'homepage_url' : nav . homepage . url , u'page_description' : config [ u'site_description' ] , u'favicon' : config [ u'site_favicon' ] , u'repo_url' : config [ u'repo_url' ] , u'repo_name' : config [ u'repo_name' ] , u'include_nav' : config [ u'include_nav' ] , u'include_next_prev' : config [ u'include_next_prev' ] , u'copyright' : config [ u'copyright' ] , u'google_analytics' : config [ u'google_analytics' ] }
given the sitenavigation and config .