A new site for Gladys 4?

Hello everyone!

While the v4 has already been installed more than 1,200 times since the alpha launch, the current Gladys website (gladysassistant.com) is still the one created for v3. I have gradually hidden the information related to v3, but it’s not easy, this site was not designed for v4 ^^ The site design is still an old Bootstrap 3 theme, not easy to update.

I would like to rethink the site to help newcomers understand Gladys 4 and give them the desire to embark on the adventure! :slight_smile:

The goal of this topic is to discuss what we want on the site and how we are going to implement it.

Functional Specifications

In my opinion, an open-source product’s website should answer the following questions:

  • What does the software do? Can I do XXX?
  • What does Gladys integrate with? Which devices exactly? Do I have a « fibaro XX » device, is it managed by Gladys?
  • How to install Gladys? On a Raspberry Pi? On a Synology? On a freebox delta?
  • I have a question, where do I ask?

With this in mind, I have started designing a site for Gladys 4:

This is a functional design, the design itself (font, etc.) is not done here at all.

You will notice several things:

  • The documentation is back on the main site. I think that documentation is the heart of an open-source project, and I find it a shame to put it on a separate domain, as if it were not important: it is the most important!
  • We often talked about an « Integrations » tab that lists all the devices managed by Gladys. I have thought a lot about it, and I am starting to see how we are going to integrate it. Similarly, it has its place on the main Gladys site. @AlexTrovato this will interest you :wink:
  • Each managed device has its own page, and it is possible to comment on the « device » page to ask questions. To be seen if we can integrate Discourse on this page so that the messages are on the forum :slight_smile:

Technical Specifications

  • We are an open-source project, the site must be open-source as it is currently. Everyone can edit the site :slight_smile:
  • The site is multilingual (EN/FR)
  • Blog articles are stored in markdown in files
  • Integrations are stored in markdown in files (one file per integration & per language)
  • The site is generated and static

Regarding the static site generator, we currently use Jekyll, a static site generator written in Ruby. It works well, but it is quite slow to generate + the fact that it is written in Ruby is not practical: I don’t know anything about Ruby and we are quickly stuck as soon as we want to do something custom :smiley:

I would like to switch to a JavaScript generator, like Gatsby or NextJS. I have the impression that NextJS is simpler than Gatsby, but I have not yet chosen between the two :smiley:

What do you think?

No doubt you’re a JS dev ^^

Jokes aside, I agree with you on the documentation and integrations. For the rest, I don’t have much of an opinion.

Generally, when I land on a site with this type of welcome (Slider / Features, etc.), the first thing I look for is the documentation, often to answer this question:arrow_up:
And when the documentation doesn’t have a search bar, I leave (yes, laziness :slight_smile: )


I don’t know if you’ve seen it, but nextjs have made a guide for the user, I find it nice

Me too! Currently, I don’t really like what we have, I think it will be simpler to understand for new arrivals

This reminds me that I forgot the search bar on the documentation, it must be the basics

I’ve been using it for several years :slight_smile: On the website + the forum. In fact, there is already a compatibility page that I made for Gladys v3 (https://gladysassistant.com/fr/compatibilities/), but I’ve hidden it for now since it’s not up to date

After the Amazon partner program, it really doesn’t pay much, I’m counting more on Gladys Plus to be supported in my work :slight_smile:

For now, this is not planned; managing multiple subscription plans is an additional complexity. One is already enough for now :smiley:

@lidian that’s kind! For now, we’re more in the design phase than in implementation, I’ll post a message when I start on the website :slight_smile:

Meanwhile, don’t hesitate to help us with Gladys itself, it’s Preact (lighter React) + Node.js, and we have plenty of todos waiting! (Issues · GladysAssistant/Gladys · GitHub), all help is welcome :wink:

I really like Docusaurus:

It allows you to create sites with hyper-clean documentation, search, dark mode, all built from Markdown files, and custom pages are in React.

However, their v2 is not yet compatible with internationalization…

I’m really torn between starting a new site with Next.js, but I risk reinventing what Docusaurus does natively, or waiting for Docusaurus to release its v2 so I can migrate our site.

I just did a quick test, it’s not bad and just for the dark theme I say yes ^^.

I think it’s worth waiting, and nothing stops us from starting the work before.

Indeed, you can start with just a French website for example, put it on another domain (like a subdomain of gladysassistant.com), while waiting for them to release internationalization. But what worries me is that they might be slow and release it in a year… I think they have been working on v2 since 2018

I’ve done some initial tests with Docusaurus v2, it’s awesome!

They use Infima for styling, it’s really not bad

Copier :smiley:

Aha :smiley: While waiting for internationalization in Docusaurus, I wonder what’s stopping us from creating 2 folders (one « fr » and one « en »), and having 2 different Docusaurus projects. We can try to maximize the sharing of files (React components for the homepage for example), but otherwise the .md files will all be different.

https://github.com/facebook/docusaurus/issues/789#issuecomment-634721378

I saw it, but well « hopefully sometime in the next couple of months » isn’t necessarily reassuring :smiley:

Well, with what we already have, I’m sure we can already build a site in English/French by simply separating the two sites and doing a double generation.

Just like the Gladys rc1 :smiley: #joke

Done in 20 minutes:

Hyper cool this tool! :slight_smile:

I’ve put this first proof of concept on a Git repo:

Now we need to achieve the dual « fr/en » site for internationalization

I just finished migrating the EN documentation:

Now I’m starting on the FR documentation.

After that, what remains:

  • The FR blog
  • The EN blog
  • The EN+FR homepage

I will probably try to do a first deployment on a subdomain before pushing the whole thing :slight_smile:

Booon

:white_check_mark: Doc FR done
:white_check_mark: Doc EN done

I am on the integrations page now!