This site is built with Sphinx using the code base in ossec.github.io/_project. To visit the finished website, go to http://ossec.github.io. Most of the website should remain the same over time except when we have in OSSEC releases or want to add a blog entry. After cloning or forking this repo, follow these instructions to revise the website content for downloads or blogs.
- cd to _project/
- Open the downloads.rst file
- Make changes to links where necessary.
- Run make clean then make html.
- Open _project/_build/html/index.html in a browser to see the new website.
- Repeat steps 2-4 as necessary until the Downloads page looks right.
- Replace the ossec.github.io/downloads.html with _project/_build/html/downloads.html
- cd to the top level ossec.github.io
- Push all the revisions to ossec.github.io.
- cd _project/blog/posts
- Create a file using the naming convention YYYY-mm-dd-TITLE.rst in the blog/posts directory.
- Open this file in the editor of your choice.
- Replace TITLE with the title of your blog.
- Add a section at the top of the blog file that looks like this:
.. post:: MMM DD, YYYY :tags: your tags :category: your categories :author: your name ===== TITLE =====
- Replace MMM with the month abbreviation of your blog, e.g. Jan, Feb, etc.
- Replace DD with the day number, e.g. 01, 02, 03, 3tc.
- Replace YYYY with the year. Note for steps 4-6 check the files in blob/posts for examples.
- Fill in the your tags, your categories and your name sections.
- Write the blog content below your TITLE section.
- cd to _project/
- Run make clean then make html.
- Open _project/_build/html/index.html in a browser to see the new website.
- Repeat steps 7-10 until your blog content looks right.
- Replace ossec.github.io/blog.html with _project/_build/html/_blog.html.
- Copy the HTML version of your blog from _project/_build/html/blog/posts to ossec.github.io/blog/posts/.
- cd to the top level ossec.github.io
- Push all the revisions to ossec.github.io.