AS4SR / website

Home Page:http://www.ase.uc.edu/spacerobotics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

website

This is a set of scripts and .part(ial) files used to compile a working copy of the AS4SR website, available at: http://www.ase.uc.edu/spacerobotics/

Usage notes for AS4SR website authors

To add new content

Follow the below, replacing MYCONTENT with the base name of the page that you want to create:

  1. Create a file called MYCONTENT.part at https://github.com/AS4SR/website/_template_parts
  2. Add your html content to the file MYCONTENT.part
  3. Edit https://github.com/AS4SR/website/create_html.py so that your full html file will be generated
    1. Add your webpage to the html_create_list variable, where you want it to show up in the menubar (see MYCONTENT versus MYCONTENTLVL2). This should look something like:
      [['','','./','custom404.html','_template_parts/custom404.part','404 Error'], ['level1','index','','index.html','_template_parts/index.part','Home'], ['level1','MYCONTENT','./','MYCONTENT.html','_template_parts/MYCONTENT.part','NAMEOFWEBPAGE'], ['level1','about','','about.html','_template_parts/about.part','About'], ['level1','resources','','resources.html','_template_parts/coming_soon.part','Resources'], ['level2','robots','','robots.html','_template_parts/coming_soon.part','Robots'], ['level2','archived_robots','archived/','robots.html','_template_parts/coming_soon.part','Archived Robots'], ['level2','MYCONTENTLVL2','archived/','MYCONTENTLVL2.html','_template_parts/MYCONTENTLVL2.part','NAMEOFWEBPAGE2'] ['level1','archived','','archived.html','_template_parts/coming_soon.part','Archived Projects'], ['level2','later','archived_projects/','later.html','_template_parts/coming_soon.part','...']] Note that if you don't start your listing with a 'level1' or 'level2' then the webpage is created but it isn't added to the CSS or menubar list.
  4. Add images you need to reference to ./public_html/images
  5. Add publications you need to link to to ./public_html/publications

To update what's on the AS4SR webserver

  1. Log in to the webserver
  2. Copy the newest version of the pulldown_instructions.sh file to /home/spacerobotics properly, via:
    cd /home/wwwase/spacerobotics
    rm pulldown_instructions.sh
    wget https://github.com/AS4SR/website/raw/master/pulldown_instructions.sh
    chmod +x pulldown_instructions.sh
  3. Run at the prompt:
    cd /home/wwwase/spacerobotics && ./pulldown_instructions.sh
  4. If you see no errors, everything should have copied just fine!
  5. Check the website at http://www.ase.uc.edu/spacerobotics/ to make sure everything looks right.

To compile a local copy of the AS4SR webserver on your local machine for testing

  1. Get a local copy of this repository, via:
    mkdir -p /home/$USER/git_pulls && cd /home/$USER/git_pulls
    git clone https://github.com/AS4SR/website.git
    cd website
  2. Remove any previously-existing local-website compilation, via:
    rm -rf /home/$USER/test_website/html_here/
  3. Run at the prompt:
    ./create_html.py local /home/$USER/git_pulls/website/ /home/$USER/test_website/html_here/
  4. If you see no errors, everything should have copied just fine!
  5. Check the website at file:///home/$USER/test_website/html_here/ to make sure everything looks right, via:
    firefox "file:///home/$USER/test_website/html_here/" &

Alternate example:

mkdir -p /home/$USER/github_pulls && cd /home/$USER/github_pulls
git clone https://github.com/AS4SR/website.git website_AS4SR
cd website_AS4SR
rm -rf /home/$USER/test_website/html_here/
./create_html.py local /home/$USER/github_pulls/website_AS4SR/ /home/$USER/test_website/html_here/
firefox "file:///home/$USER/test_website/html_here/" &

Copyright

Copyright for webpage content: University of Cincinnati, 2017-2024

Copyright for code: BSD 3-clause license, University of Cincinnati, 2017-2024
(The code is used to generate the full html webpages from the files in the ./_templates and ./_template_parts directories.)

About

http://www.ase.uc.edu/spacerobotics

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:HTML 52.0%Language:Python 36.8%Language:CSS 9.9%Language:Shell 1.4%