Lines Matching refs:doc
75 def insert_stub(doc, java, both): argument
85 print "File: ", stubs, doc
87 fn = os.path.split(doc)
98 file_path = doc[len(java_ref_root)+1:]
99 stub = doc.replace(java_source_abs_path, kotlin_source_abs_path)
101 …}\\n{% setvar can_switch %}1{% endsetvar %}\\n{% include \"reference\/_java_switcher2.md\" %}",doc)
103 …= "sed -i 's/<\/h1>/{}/' {}".format("<\/h1>\\n{% include \"reference\/_java_switcher2.md\" %}",doc)
105 file_path = doc[len(kotlin_ref_root)+1:]
106 stub = doc.replace(kotlin_source_abs_path, java_source_abs_path)
108 …\n{% setvar can_switch %}1{% endsetvar %}\\n{% include \"reference\/_kotlin_switcher2.md\" %}",doc)
110 …"sed -i 's/<\/h1>/{}/' {}".format("<\/h1>\\n{% include \"reference\/_kotlin_switcher2.md\" %}",doc)
114 page_path_slug = "sed -i 's/_page_path_/{}/' {}".format(file_path.replace("/","\/"),doc)
156 doc = os.path.join(root, file_)
161 kotlinsource = doc.replace(java_source_abs_path, kotlin_source_abs_path)
164 insert_stub(doc, True, True)
170 print "solo: ", doc
171 insert_stub(doc, True, False)
205 doc = os.path.join(root, file_)
206 javadoc = doc.replace(kotlin_source_abs_path, java_source_abs_path)
208 file_path = doc[len(kotlin_source_abs_path)+1:]
220 print "solo: ", doc
221 insert_stub(doc , False, False)