Giter VIP home page Giter VIP logo

ubuntu.com's Introduction

ubuntu.com codebase

Code coverage Cypress checks Cypress checks / main

Ubuntu is an open source software operating system that runs from the desktop, to the cloud, to all your internet connected things. Ubuntu.com is the website that helps people learn about, download and get started with Ubuntu. This repo is the codebase and content for the ubuntu.com website.

The site is largely maintained by the Web and Design team at Canonical. It is a simple, database-less, informational website project based on Flask and hosted on a Charmed Kubernetes cluster.

You can read more about the application's architecture in ARCHITECTURE.md.

Bugs and issues

If you have found a bug on the site or have an idea for a new feature, feel free to create a new issue, or suggest a fix by creating a pull request. You can also find a link to create issues in the footer of every page of the site itself.

If you have found a bug in the Ubuntu OS itself, please file it here.

Local development

The simplest way to run the site locally is using the dotrun snap. Please use the installation scripts mentioned in the README to install dotrun.

Once it's installed, run the project with:

dotrun

For Mac users, in case running dotrun returns an error related to Chromium, add the following line to your local .env.local file (create one if you don't have it):

PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true

Once the server has started, you can visit http://127.0.0.1:8001 in your browser.

For more information on how to work with ubuntu.com project please refer to HACKING.md.

Deploy

You can find the deployment config in the deploy folder.

License

The content of this project is licensed under the Creative Commons Attribution-ShareAlike 4.0 International license, and the underlying code used to format and display that content is licensed under the LGPLv3 by Canonical Ltd.

With ♥ from Canonical

ubuntu.com's People

Contributors

abhigyanghosh30 avatar akbarkz avatar albertkol avatar anthonydillon avatar barrymcgee avatar bethcollins92 avatar caldav avatar caleb-ellis avatar carkod avatar clementchaumel avatar deadlight avatar evilnick avatar grahambancroft avatar huwshimi avatar jpmartinspt avatar lizzochek avatar minkyngkm avatar mrgnr avatar mtruj013 avatar nottrobin avatar pedoch avatar petermakowski avatar petesfrench avatar pmahnke avatar sirsamtumless avatar solazio avatar sowasred2012 avatar steverydz avatar tbille avatar willmoggridge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ubuntu.com's Issues

"download" in nav does multiple redirects

The "download" link in the primary navigation links to /download, which then redirects to /desktop/get-ubuntu/download:

$ curl -I http://127.0.0.1:8001/download
HTTP/1.0 302 FOUND
Location: http://127.0.0.1:8001/desktop/get-ubuntu/download

Which then redirects to /download/desktop:

$ curl -I http://127.0.0.1:8001/desktop/get-ubuntu/download
HTTP/1.0 302 FOUND
Location: http://127.0.0.1:8001/download/desktop

We should update the download item to go straight to /download/desktop, and change the /download redirect to point directly there too.

Clean out redirects.yaml

Context

redirects.yaml contains all the redirects for the site. It's recently been converted from the old redirects.txt that was in lp:ubuntu-website-content, so there's a lot of crap in it.

Process

  1. Remove unnecessary redirects

There are a lot of weird redirects like <a.... These are pulled from 404s that appeared in webmaster tools. I don't agree that these should be redirected. Stupid URLs should be allowed to result in 404s, and if we want to make something out of them we should simply improve our 404 page to be more helpful to the user.

  1. Consolidate redirects using regular expressions

There are a lot of similar redirects that could be consolidated with regular expressions. E.g.:

old/path/[^/?]+/(?P<somewhere>[^/]+)/?: "/new/path/%(somewhere)s"

Expected result

A much smaller redirects yaml.

Phone > Overview: the hero image is not showing up, text unreadable [IE9, Win 7]

Also in:
Phone > Features hero
Phone > Developers "Space for your content to shine"
IoT > Overview hero
IoT > Overview "The best choice for developers"
IoT > Features hero
IoT > Features "A marketplace for incredible apps"
IoT > Partners hero
IoT > Developers hero
IoT > Developers "Robots, drones"
IoT > Developers "Get involved with the internet of toys"
Tablet > Developers hero
Tablet > Partners hero
Tablet > Partners "Partner with us"

Not an issue on live site.

/desktop/features Skype animation [ubuntu/chrome SM]

Context

At small screen, the animation of the calling animation appears next to the screenshot, not overlaid

Process

  • Go to /desktop/features in a small viewport
  • Scroll to the skype row

Expected result

The animation should be overlaid on the screenshot of the skype window

Current result

The animation is displayed under the screenshot

Use patterns in redirects.json

Make use of patterns where possible to slim down redirects.json.

Also, remove a bunch of redirects that should really just 404.

Also, maybe redirect /iot to /internet-of-things.

README should contain install instructions

When running make run on a fresh machine I get:

$ make run
docker-compose up -d
#ERROR: Couldn't connect to Docker daemon. You might need to install Docker:

http://docs.docker.io/en/latest/installation/ubuntulinux/
Makefile:45: recipe for target 'run' failed
make: *** [run] Error 1

There should be instructions on how to set up the full environment in the README file.

`make run` should do an initial sass compile

Currently, if styles.css exists, make run probably won't rebuild it. This means your CSS might well be out of date until you make a change.

make run should force compile the sass (maybe using make compile-sass) initially, before starting the watcher.

/desktop/features "a whole world of apps" link positioning [ubuntu/chrome sm]

Context

On small viewport, the link "Visit the Ubuntu apps directory" link displays incorrectly at the smallest virewport

Process

Go to /desktop/features and look at the "a whole world of apps row"

Expected result

The "visit..." link should be at the bottom of the row

Current result

The "visit..." link is in the top-right of the row

/desktop - Redirect loop

Context

The browser reports a redirect loop for /desktop

Process

Navigate to /desktop

Expected result

The desktop landing page

Current result

redirect loop

Speed up `make run`

make run takes a long time. It needs to be quick once everything is setup, as it's the main way to run the local development server.

The main thing which takes up the time is "Sending build context to Docker daemon". Apparently in this step it tars up and sends the entire directory to docker hub.

Apparently we can avoid sending all these unnecessary files by adding a .dockerignore file - but maybe we need them? Will this mess up the demos?

/desktop/features Email row animation [ubuntu/chrome SM]

Context

At small screen, the animation of the email text appears below the screenshot, not on top of it.

Process

  • Go to /desktop/features in a small viewport
  • Scroll to the email row

Expected result

The animated text should be overlaid on the screenshot of the email window

Current result

The animated text is displayed under the screenshot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.