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/
Follow the below, replacing MYCONTENT
with the base name of the page that you want to create:
- Create a file called MYCONTENT.part at https://github.com/AS4SR/website/_template_parts
- Add your html content to the file MYCONTENT.part
- Edit https://github.com/AS4SR/website/create_html.py so that your full html file will be generated
- Add your webpage to the
html_create_list
variable, where you want it to show up in the menubar (seeMYCONTENT
versusMYCONTENTLVL2
). 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.
- Add your webpage to the
- Add images you need to reference to
./public_html/images
- Add publications you need to link to to
./public_html/publications
- Log in to the webserver
- 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
- Run at the prompt:
cd /home/wwwase/spacerobotics && ./pulldown_instructions.sh
- If you see no errors, everything should have copied just fine!
- Check the website at http://www.ase.uc.edu/spacerobotics/ to make sure everything looks right.
- 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
- Remove any previously-existing local-website compilation, via:
rm -rf /home/$USER/test_website/html_here/
- Run at the prompt:
./create_html.py local /home/$USER/git_pulls/website/ /home/$USER/test_website/html_here/
- If you see no errors, everything should have copied just fine!
- 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/" &
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 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.)