Example #1
0
#import glob
import stat

from time import gmtime, strftime
#import time
import time

wiki_repo = 'https://github.com/kripken/emscripten.wiki.git'
wiki_directory = '.\\wiki_static\\'
logfilename = 'log-get-wiki.txt'

# Add the directory containing your module to the Python path (wants absolute paths)
#sys.path.append(os.path.abspath(scriptpath))
from api_items import get_mapped_items
# GetmMap of code items from api_items.py
mapped_wiki_inline_code = get_mapped_items()
#Add any additional mapped items that seem reasonable.
mapped_wiki_inline_code[
    'getValue(ptr, type)'] = ':js:func:`getValue(ptr, type) <getValue>`'
mapped_wiki_inline_code[
    'setValue(ptr, value, type)'] = ':js:func:`setValue(ptr, value, type) <setValue>`'
"""

"""

wiki_temp_directory = wiki_directory + 'temp\\'
temp_set_of_codemarkup = set()
logfile = open(logfilename, 'w')
#snapshot_version_information='.. note:: This is a **snapshot** of the wiki: %s\n\n' % strftime("%a, %d %b %Y %H:%M", gmtime())
snapshot_version_information = '.. note:: This article was migrated from the wiki (%s) and is now the "master copy" (the version in the wiki will be deleted). It may not be a perfect rendering of the original but we hope to fix that soon!\n\n' % strftime(
    "%a, %d %b %Y %H:%M", gmtime())
Example #2
0
import time



wiki_repo = 'https://github.com/kripken/emscripten.wiki.git'
wiki_directory = '.\\wiki_static\\'
logfilename='log-get-wiki.txt'




# Add the directory containing your module to the Python path (wants absolute paths)
#sys.path.append(os.path.abspath(scriptpath))
from api_items import get_mapped_items
# GetmMap of code items from api_items.py 
mapped_wiki_inline_code = get_mapped_items()
#Add any additional mapped items that seem reasonable.
mapped_wiki_inline_code['getValue(ptr, type)']=':js:func:`getValue(ptr, type) <getValue>`'
mapped_wiki_inline_code['setValue(ptr, value, type)']=':js:func:`setValue(ptr, value, type) <setValue>`'
"""

"""




wiki_temp_directory = wiki_directory + 'temp\\'
temp_set_of_codemarkup=set()
logfile=open(logfilename,'w')
snapshot_version_information='.. note:: This is a **snapshot** of the wiki: %s\n\n' % strftime("%a, %d %b %Y %H:%M", gmtime())
Example #3
0
import os
import re
import shutil
import stat
import sys
import time
from pathlib import Path

import api_items

wiki_repo = 'https://github.com/emscripten-core/emscripten.wiki.git'
output_dir = './wiki_static/'
logfilename = 'log-get-wiki.txt'

# GetmMap of code items from api_items.py
mapped_wiki_inline_code = api_items.get_mapped_items()
# Add any additional mapped items that seem reasonable.
mapped_wiki_inline_code[
    'getValue(ptr, type)'] = ':js:func:`getValue(ptr, type) <getValue>`'
mapped_wiki_inline_code[
    'setValue(ptr, value, type)'] = ':js:func:`setValue(ptr, value, type) <setValue>`'

wiki_checkout = 'emscripten.wiki/'
temp_set_of_codemarkup = set()
logfile = open(logfilename, 'w')
# snapshot_version_information = '.. note:: This is a **snapshot** of the wiki: %s\n\n' % strftime("%a, %d %b %Y %H:%M", gmtime())
snapshot_version_information = '.. note:: This article was migrated from the wiki (%s) and is now the "master copy" (the version in the wiki will be deleted). It may not be a perfect rendering of the original but we hope to fix that soon!\n\n' % time.strftime(
    "%a, %d %b %Y %H:%M", time.gmtime())


def CleanWiki():