[library-web/new-website-style] add a new --rebuild-remote command to rebuild remote documents
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web/new-website-style] add a new --rebuild-remote command to rebuild remote documents
- Date: Tue, 29 Mar 2011 15:29:34 +0000 (UTC)
commit 7e56870b3a956328b9e2b7d1d1a13a70a8e783da
Author: Frédéric Péters <fpeters 0d be>
Date: Tue Mar 29 20:59:15 2011 +0530
add a new --rebuild-remote command to rebuild remote documents
src/app.py | 3 +++
src/lgo.py | 5 +++++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/app.py b/src/app.py
index 2413a55..f5c02f1 100644
--- a/src/app.py
+++ b/src/app.py
@@ -68,6 +68,9 @@ class App:
parser.add_option('--skip-extra-tarballs',
action = 'store_false', dest = 'skip_extra_tarballs',
help = "don't look for documentation extra tarballs")
+ parser.add_option('--rebuild-remote-documents',
+ action = 'store_true', dest = 'rebuild_remote',
+ help = 'rebuild remote documents')
self.options, args = parser.parse_args()
logging.basicConfig(level = 10 + logging.CRITICAL - self.options.verbose*10,
diff --git a/src/lgo.py b/src/lgo.py
index e8c920e..d09727e 100755
--- a/src/lgo.py
+++ b/src/lgo.py
@@ -139,6 +139,11 @@ class Lgo(App):
doc_module.process()
sys.exit(0)
+ if self.options.rebuild_remote:
+ self.generate_static_pages()
+ self.apply_overlay()
+ sys.exit(0)
+
self.copy_static_files()
self.process_releases()
if not self.options.skip_extra_tarballs:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]