Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Department members can publish documents and data on the web by uploading files to their computing accounts.

Alternatives include Github Pages, Netlify, and bCourses sites.

If you are faculty and choose to publish your site on an external hosting provider, we can create an domain name alias for you in the .stat.berkeley.edu subdomain, e.g. yourname.stat.berkeley.edu.

Google Sites and other web platforms where one cannot adjust the underlying HTML have been deprecated for accessibility considerations.

Guidelines

Only individuals who are associated with either the Statistics or Biostatistics departments are eligible to use this resource to distribute information. Participants must observe all departmental and UC campus rules and regulations, and all copyright laws. The SCF reserves the right not to post submitted material.

Graduate students may maintain their own homepage using the following guidelines:

Creating HTML

Many applications can generate HTML files and you can probably export to HTML from your favorite application suite. LaTeX, Google Docs, Microsoft Word, TextEdit, and Mozilla SeaMonkey are good places to start.

Other approaches to creating HTML include:

  1. Modern markdown-based tools such as MyST and Quarto.

  2. latex2html will convert a LaTeX document to HTML. Here is a template tex file and here is the accompanying jpeg figure that is used in the tex file. To create the HTML, run latex2html latex2htmlExample on any SCF machine. If you want to have all the LaTeX section in a single HTML rather than separate HTML files for each section, do latex2html -split 0 latex2htmlExample.

  3. You can use the knitr package in R to convert from R Markdown (.Rmd) and Sweave (.Rnw/.Rtex) files with embedded R code to HTML. Load the knitr package in R and then run “knit2html file.Rmd”, replacing “Rmd” with the appropriate extension, as necessary. Contact consult@stat.berkeley.edu if you have questions.

Setting up the web area

You will need to deposit your HTML files into a user-specific directory, /accounts/web/public/username/, on the SCF. View your site at the address https://www.stat.berkeley.edu/~username/. Your files will be available immediately on the website, though you may need to reload your browser to see the changes. Make sure that your files are readable, e.g. chmod go+r filename.html, otherwise the public will not be able to view them. You can make use of this to hide content as well, e.g. chmod go-r filename.html.

Redirecting to Another Web Page

If you want to migrate your website to another provider and redirect people to the new site, you can create an index.html file of the form below, replacing the example URL with your own:

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="refresh" content="0; url='https://example.com'" />
  </head>
</html>

Password protected web areas

Use Google Drive to share material if you need to have collaborators access restricted content over the web.