I have checked in javadocs(html files) into svn. But, when I access the html files thru a browser, it gets interpreted as text. How, do I fix this ?
SVN is not a webserver. I guess you are talking about Subversion's Apache module!? If you want to view .html files as HTML then you should set svn:mime-type=text/html
:
svn propset svn:mime-type text/html *.html
See Properties in the SVN Book.
Also, if the
svn:mime-type
property is set, then the Subversion Apache module will use its value to populate theContent-type:
HTTP header when responding to GET requests. This gives a crucial clue about how to display a file when perusing your repository with a web browser.
Maybe you can configure your subversion client or server with the following lines in the config file:
[miscellany]
### Automatic properties are defined in the section 'auto-props'.
enable-auto-props = yes
### Section for configuring automatic properties.
[auto-props]
*.html = svn:mime-type=text/html
This will automatically set the properties for new files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With