Exemplo n.º 1
0
 def test_custom_site_dir(self):
     os.chdir(os.path.join(test_data_dir, 'site_dir'))
     cfg = mkdocs_utils.ConfigData('mkdocs.yml')
     self.assertEqual(cfg.site_dir, 'built_docs')
     self.assertEqual(cfg.remote_name, 'origin')
     self.assertEqual(cfg.remote_branch, 'gh-pages')
     self.assertEqual(cfg.use_directory_urls, True)
Exemplo n.º 2
0
 def test_remote(self):
     os.chdir(os.path.join(test_data_dir, 'remote'))
     cfg = mkdocs_utils.ConfigData('mkdocs.yml')
     self.assertEqual(cfg.site_dir, 'site')
     self.assertEqual(cfg.remote_name, 'myremote')
     self.assertEqual(cfg.remote_branch, 'mybranch')
     self.assertEqual(cfg.use_directory_urls, True)
Exemplo n.º 3
0
 def test_abs_path(self):
     cfg = mkdocs_utils.ConfigData(
         os.path.join(test_data_dir, 'basic_theme', 'mkdocs.yml'))
     self.assertEqual(cfg.site_dir,
                      os.path.join(test_data_dir, 'basic_theme', 'site'))
     self.assertEqual(cfg.remote_name, 'origin')
     self.assertEqual(cfg.remote_branch, 'gh-pages')
     self.assertEqual(cfg.use_directory_urls, True)