Lines Matching refs:doc
55 def insert_stub(doc, java, both): argument
65 print "File: ", stubs, doc
67 fn = os.path.split(doc)
78 file_path = doc[len(java_ref_root)+1:]
79 stub = doc.replace(java_source_abs_path, kotlin_source_abs_path)
81 …}\\n{% setvar can_switch %}1{% endsetvar %}\\n{% include \"reference\/_java_switcher2.md\" %}",doc)
83 …= "sed -i 's/<\/h1>/{}/' {}".format("<\/h1>\\n{% include \"reference\/_java_switcher2.md\" %}",doc)
85 file_path = doc[len(kotlin_ref_root)+1:]
86 stub = doc.replace(kotlin_source_abs_path, java_source_abs_path)
88 …\n{% setvar can_switch %}1{% endsetvar %}\\n{% include \"reference\/_kotlin_switcher2.md\" %}",doc)
90 …"sed -i 's/<\/h1>/{}/' {}".format("<\/h1>\\n{% include \"reference\/_kotlin_switcher2.md\" %}",doc)
94 page_path_slug = "sed -i 's/_page_path_/{}/' {}".format(file_path.replace("/","\/"),doc)
136 doc = os.path.join(root, file_)
141 kotlinsource = doc.replace(java_source_abs_path, kotlin_source_abs_path)
144 insert_stub(doc, True, True)
150 print "solo: ", doc
151 insert_stub(doc, True, False)
185 doc = os.path.join(root, file_)
186 javadoc = doc.replace(kotlin_source_abs_path, java_source_abs_path)
188 file_path = doc[len(kotlin_source_abs_path)+1:]
200 print "solo: ", doc
201 insert_stub(doc , False, False)