Home | History | Annotate | Download | only in scripts

Lines Matching refs:wiki

31 """Script for branching Google Test/Mock wiki pages for a new version.
37 interlinked wiki files. When we release a new version of
38 Google Test or Google Mock, we need to branch the wiki files
43 - branching the current wiki pages (which document the
45 version (e.g. branching FAQ.wiki to V2_6_FAQ.wiki when
48 version (e.g. a link in V2_6_FAQ.wiki that pointed to
49 Primer.wiki#Anchor will now point to V2_6_Primer.wiki#Anchor).
52 which the wiki pages don't yet exist; otherwise you'll get SVN
53 errors like "svn: Path 'V1_7_PumpManual.wiki' is not a
58 $ scripts/release_docs.py 2.6 # create wiki pages for v2.6
61 $ svn commit -m "release wiki pages for v2.6"
73 # Wiki pages that shouldn't be branched for every gtest/gmock release.
74 GTEST_UNVERSIONED_WIKIS = ['DevGuide.wiki']
76 'DesignDoc.wiki',
77 'DevGuide.wiki',
78 'KnownIssues.wiki'
83 """Removes the .wiki suffix (if any) from the given filename."""
85 return (wiki_filename[:-len('.wiki')] if wiki_filename.endswith('.wiki')
96 self.wiki_dir = svn_root_path + '/wiki'
101 # A link to Foo.wiki is in one of the following forms:
104 # [http://code.google.com/.../wiki/Foo words]
105 # [http://code.google.com/.../wiki/Foo#Anchor words]
111 # /wiki/Foo
113 # unversioned wiki page.
114 r'(\[|/wiki/)(%s)([ #])' % '|'.join(page_names))
118 """Returns a list of .wiki file names that need to be branched."""
123 if (f.endswith('.wiki') and
124 not re.match(r'^V\d', f) and # Excluded versioned .wiki files.
128 """Branches the .wiki files needed to be branched."""
130 print 'Branching %d .wiki files:' % (len(self.files_to_branch),)