mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	integrations doc: Move subversion doc to separate file.
This commit is contained in:
		@@ -116,61 +116,6 @@
 | 
			
		||||
        {% include 'zerver/integrations/email.html' %}
 | 
			
		||||
    {% endif %}
 | 
			
		||||
 | 
			
		||||
    <div id="subversion" class="integration-instructions">
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
      <p>It is easy to send Zulips on SVN commits, by configuring a post-commit
 | 
			
		||||
      hook. To do this:</p>
 | 
			
		||||
 | 
			
		||||
      <p>First, create the stream you'd like to use for SVN commit
 | 
			
		||||
      notifications, and subscribe all interested parties to this stream. The
 | 
			
		||||
      integration will use the default stream <code>commits</code> if no stream
 | 
			
		||||
      is supplied in the hook; you still need to create the stream even if you
 | 
			
		||||
      are using this default.</p>
 | 
			
		||||
 | 
			
		||||
      <p>Then:</p>
 | 
			
		||||
 | 
			
		||||
      <ol>
 | 
			
		||||
        <li>Download and install our <a href="/api">Python bindings</a> on the
 | 
			
		||||
        server where the SVN repository lives.</li>
 | 
			
		||||
        <li>Install <code>pysvn</code>. On Linux, you can install
 | 
			
		||||
        the <code>python-svn</code> package. On other platforms, you can install
 | 
			
		||||
        a binary or from source following
 | 
			
		||||
        the <a href="http://pysvn.tigris.org/project_downloads.html">instructions
 | 
			
		||||
        on the pysvn website</a>.</li>
 | 
			
		||||
        <li>Copy <code>integrations/svn/zulip_svn_config.py</code>
 | 
			
		||||
        and <code>integrations/svn/post-commit</code> from the API bindings
 | 
			
		||||
        directory to the <code>hooks</code> subdirectory of your SVN
 | 
			
		||||
        repository.</li>
 | 
			
		||||
 | 
			
		||||
        <li><p>Next, open <code>integrations/git/zulip_svn_config.py</code>
 | 
			
		||||
          in your favorite editor, and change the following lines to
 | 
			
		||||
          configure your SVN integration:</p>
 | 
			
		||||
 | 
			
		||||
        <div class="codehilite"><pre><span class="n">ZULIP_USER</span> <span class="o">=</span> <span class="s">"svn-bot@example.com"</span>
 | 
			
		||||
<span class="n">ZULIP_API_KEY</span> <span class="o">=</span> <span class="s">"0123456789abcdef0123456789abcdef"</span>
 | 
			
		||||
{% if api_site_required %}<span class="n">ZULIP_SITE</span> <span class="o">=</span> <span class="s">"{{ external_api_uri_subdomain }}"</span>{% endif %}</pre></div>
 | 
			
		||||
        </li>
 | 
			
		||||
 | 
			
		||||
        <li>The default stream used by this post-commit hook
 | 
			
		||||
        is <code>commits</code>; if you'd prefer a different stream, change it
 | 
			
		||||
        now in <code>zulip_svn_config.py</code>. Make sure that everyone
 | 
			
		||||
        interested in getting these post-commit Zulips is subscribed to that
 | 
			
		||||
        stream!</li>
 | 
			
		||||
      </ol>
 | 
			
		||||
 | 
			
		||||
      <p><b>Congratulations! You're done!</b><br /> When you commit to this SVN
 | 
			
		||||
      repository, the team can see these updates in real time in Zulip:</p>
 | 
			
		||||
 | 
			
		||||
      <img class="screenshot" src="/static/images/integrations/svn/001.png" />
 | 
			
		||||
 | 
			
		||||
      <p style="font-size:11px; font-style:italic;">
 | 
			
		||||
        Logos are trademarks of their respective owners.
 | 
			
		||||
        None of the integrations on this page are created by,
 | 
			
		||||
        affiliated with, or supported by the companies
 | 
			
		||||
        represented by the logos.
 | 
			
		||||
      </p>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div id="trac" class="integration-instructions">
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										63
									
								
								templates/zerver/integrations/subversion.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										63
									
								
								templates/zerver/integrations/subversion.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,63 @@
 | 
			
		||||
<p>
 | 
			
		||||
    It is easy to send Zulips on SVN commits, by configuring a post-commit
 | 
			
		||||
    hook. To do this:
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
    First, create the stream you'd like to use for SVN commit
 | 
			
		||||
    notifications, and subscribe all interested parties to this stream. The
 | 
			
		||||
    integration will use the default stream <code>commits</code> if no stream
 | 
			
		||||
    is supplied in the hook; you still need to create the stream even if you
 | 
			
		||||
    are using this default.
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>Then:</p>
 | 
			
		||||
 | 
			
		||||
<ol>
 | 
			
		||||
    <li>
 | 
			
		||||
        Download and install our <a href="/api">Python bindings</a> on the
 | 
			
		||||
        server where the SVN repository lives.
 | 
			
		||||
    </li>
 | 
			
		||||
    <li>
 | 
			
		||||
        Install <code>pysvn</code>. On Linux, you can install
 | 
			
		||||
        the <code>python-svn</code> package. On other platforms, you can install
 | 
			
		||||
        a binary or from source following the
 | 
			
		||||
        <a href="http://pysvn.tigris.org/project_downloads.html">
 | 
			
		||||
            instructions on the pysvn website
 | 
			
		||||
        </a>.
 | 
			
		||||
    </li>
 | 
			
		||||
    <li>
 | 
			
		||||
        Copy <code>integrations/svn/zulip_svn_config.py</code>
 | 
			
		||||
        and <code>integrations/svn/post-commit</code> from the API bindings
 | 
			
		||||
        directory to the <code>hooks</code> subdirectory of your SVN
 | 
			
		||||
        repository.
 | 
			
		||||
    </li>
 | 
			
		||||
 | 
			
		||||
    <li>
 | 
			
		||||
        <p>
 | 
			
		||||
            Next, open <code>integrations/git/zulip_svn_config.py</code>
 | 
			
		||||
            in your favorite editor, and change the following lines to
 | 
			
		||||
            configure your SVN integration:
 | 
			
		||||
        </p>
 | 
			
		||||
 | 
			
		||||
        <div class="codehilite"><pre><span class="n">ZULIP_USER</span> <span class="o">=</span> <span class="s">"svn-bot@example.com"</span>
 | 
			
		||||
<span class="n">ZULIP_API_KEY</span> <span class="o">=</span> <span class="s">"0123456789abcdef0123456789abcdef"</span>
 | 
			
		||||
{% if api_site_required %}<span class="n">ZULIP_SITE</span> <span class="o">=</span> <span class="s">"{{ external_api_uri_subdomain }}"</span>{% endif %}</pre>
 | 
			
		||||
        </div>
 | 
			
		||||
    </li>
 | 
			
		||||
 | 
			
		||||
    <li>
 | 
			
		||||
        The default stream used by this post-commit hook
 | 
			
		||||
        is <code>commits</code>; if you'd prefer a different stream, change it
 | 
			
		||||
        now in <code>zulip_svn_config.py</code>. Make sure that everyone
 | 
			
		||||
        interested in getting these post-commit Zulips is subscribed to that
 | 
			
		||||
        stream!
 | 
			
		||||
    </li>
 | 
			
		||||
</ol>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
    <b>Congratulations! You're done!</b><br/> When you commit to this SVN
 | 
			
		||||
    repository, the team can see these updates in real time in Zulip:
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<img class="screenshot" src="/static/images/integrations/svn/001.png"/>
 | 
			
		||||
@@ -133,6 +133,7 @@ def check_html_templates(templates, all_dups):
 | 
			
		||||
            'templates/zerver/integrations/mercurial.html',
 | 
			
		||||
            'templates/zerver/integrations/nagios.html',
 | 
			
		||||
            'templates/zerver/integrations/openshift.html',
 | 
			
		||||
            'templates/zerver/integrations/subversion.html',
 | 
			
		||||
        ]
 | 
			
		||||
        validate(fn=fn, check_indent=(fn not in bad_files))
 | 
			
		||||
 | 
			
		||||
@@ -194,6 +195,7 @@ def check_html_templates(templates, all_dups):
 | 
			
		||||
        'templates/zerver/integrations/mercurial.html',
 | 
			
		||||
        'templates/zerver/integrations/nagios.html',
 | 
			
		||||
        'templates/zerver/integrations/openshift.html',
 | 
			
		||||
        'templates/zerver/integrations/subversion.html',
 | 
			
		||||
    ]
 | 
			
		||||
    # TODO: Clean these files
 | 
			
		||||
    for fn in templates:
 | 
			
		||||
 
 | 
			
		||||
@@ -227,7 +227,7 @@ INTEGRATIONS = {
 | 
			
		||||
    'puppet': Integration('puppet', 'puppet', doc='zerver/integrations/puppet.html'),
 | 
			
		||||
    'redmine': Integration('redmine', 'redmine', doc='zerver/integrations/redmine.html'),
 | 
			
		||||
    'rss': Integration('rss', 'rss', display_name='RSS', doc='zerver/integrations/rss.html'),
 | 
			
		||||
    'subversion': Integration('subversion', 'subversion'),
 | 
			
		||||
    'subversion': Integration('subversion', 'subversion', doc='zerver/integrations/subversion.html'),
 | 
			
		||||
    'trac': Integration('trac', 'trac'),
 | 
			
		||||
    'trello-plugin': Integration(
 | 
			
		||||
        'trello-plugin',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user