Giter Site home page Giter Site logo

docs.sailfishos.org's Introduction

Sailfish OS Documentation

Welcome to the Sailfish OS Docs source repo.

Edit and contribute

Just the documentation

Simply edit a chosen README.md file and preview the changes before creating a PR.

Match existing docs source style, study the code to e.g. see how images are uploaded and displayed.

IMPORTANT: please read about the common pitfalls.

Changes to HTML (Jekyll template)

If you would like to improve the website itself (style, layout, browser fix etc.), you should test your changes before creating a PR:

Preview via GitHub Pages

NOTE: this process becomes cumbersome, if you already have your GitHub Pages enabled for other purposes under yourusername.github.io.

Fork this repo, then go to Settings | Pages | Source and choose the master branch. After a short while, you will find a copy of the docs published under https://yourusername.github.io/docs.sailfishos.org. Unfortunately, stylesheets and javascript (for search bar) won't be available, and all links will point to the top-level of the domain, thus will become broken. You're welcome to use this as an exercise for you, reader, to fix all absolute links to relative, whilst examining existing efforts in the upstream repo.

If you don't have own GitHub Pages setup yet (under yourusername.github.io), then to fix all the above broken bits, rename your forked repo via Settings | Options | Repository name from docs.sailfishos.org to yourusername.github.io.

If you already have your own yourusername.github.io, the process becomes more involved:

  • Method 1:
    • push the forked docs.sailfishos.org under a new branch of your yourusername.github.io
    • point to that new branch in Settings | Pages
  • Method 2:
    • rename your yourusername.github.io to something else, e.g. renamed-yourusername-pages via Settings | Options | Repository name
    • create new branch from renamed-yourusername-pages's default branch (using branch drop-down box)
    • set it to be as default branch in Settings | Branches
    • delete old branch in https://github.com/yourusername/renamed-yourusername-pages/branches -- this way old GitHub Pages will get unpublished
    • delete the forked docs.sailfishos.org repo
    • re-fork it again from https://github.com/sailfishos/docs.sailfishos.org
    • rename the forked docs.sailfishos.org to yourusername.github.io via Settings | Options | Repository name

Then start making changes to the active website, and as soon as you push a commit, your published website will shortly update itself.

Once happy, create PR which will automatically point to https://github.com/sailfishos/docs.sailfishos.org.

Preview on your desktop

To build on your local machine, perform the following commands:

Ubuntu

sudo apt install git ruby-bundler ruby-dev gcc g++ make
sudo gem install bundler

Fedora

sudo dnf install git gcc g++ make ruby ruby-devel
gem install bundler

Clone docs and config, install and start jekyll site generator

git clone https://github.com/sailfishos/docs.sailfishos.org
cd docs.sailfishos.org/
./create-bundle.sh

Follow the same process for creating PRs as previously.

Upstream just-the-docs status

Unfortunately the Just the Docs upstream is inactive, we very much hope that the author brings it back to live (as it has thousands of forks).

Its state however is sufficiently feature complete, truly standing out from the crowd of Jekyll docs generators.

If you are fixing a substantial issue for the Sailfish OS docs template (such as replacing all absolute URLs with relative ones), please first check amongst open PRs upstream in case it has already been addressed.

Review guidelines

When you have been asked to review a pull request in this repository, please follow the following guidelines:

  • Be polite and considerate
  • Ensure that contributors understand that review comments are not intended to be a sign of lack of appreciation for the work they have done, but rather are intended to further improve the contribution
  • Working with pull requests might seem daunting for first time contributors. Please guide them through the process - just asking them to fix errors might not be enough.
  • Check that the proposed change fits the scope of the documentation: the purpose of the site is to document Sailfish OS, development of Sailfish OS and development of Sailfish Applications
  • Check the list of common pitfalls.
  • Check that the source style matches the rest of this repository, such as no hard text wrapping, how images are included etc.
  • Check that Git commit message format matches the history of commits (e.g. no [context] or JB refs in the first line of the commit)
  • Check that the contribution uses neutral but friendly tone of voice
  • Check that topics are not duplicated - it is better to link to another page of the documentation
  • Check that the used terminology is aligned with existing Sailfish OS products, websites and documentation unless there is a specific reason not to
  • Verify that the contributor has signed the Contributor License Agreement. For new contributors you should see a message from CLAassistant, stating that all committers have signed the CLA. For old contributors, the signature is checked as part of the automated workflow - you should see message about it in the checks section.

Common pitfalls

<tags>

The following Markdown org.freedesktop.Telepathy.Connection.ring.tel.<ID> will be rendered as org.freedesktop.Telepathy.Connection.ring.tel., and the <ID> bit is lost on GitHub Pages.

To avoid, always escape correctly: org.freedesktop.Telepathy.Connection.ring.tel.\<ID\>.

Escaping Markdown syntax

Please escape Markdown symbols ([, _, * and similar) with a backslash, when intention is to actually show them, or place such word(s) within a code block if possible.

Otherwise if you write e.g. _service, Markdown will render it as service and everything thereafter will be shown in italic, whereas correct should be \_service so _service gets displayed as intended.

However, you don't have to escape some symbols (like an underscore), when they're in a middle of a word e.g. tar_git and Q&A are shown correctly.

Tables

  • Markdown does not support header-less tables, so please come up with a name for each column, to avoid an empty row at the top.

  • GitHub Pages does not render tables that have only one row, thus please come up with a header row for it too.

  • Markdown doesn't support rowspan and colspan. The latter can be worked around by giving each column a more granular name.

    Instead of rowspan, use a ditto mark to show that a cell has the same content as the cell above: <center>"</center>.

    If you absolutely must defy the purpose of using Markdown, then it's possible to achieve rowspan colspan functionality by writing your tables in HTML inside an *.md file.

  • Yes, we know that tables with long text in a cell look way too wide in Markdown's source, and cannot be rectified because it doesn't support line breaks in them. But if a cell is that big, maybe it shouldn't be a table in the first place? ;)

URLs

It's good practice to surround URLs: <http://some.url>. GitHub will linkify even non-surrounded ones, but some Markdown renderers don't. Thus please increase portability of these Markdown docs.

Syntax highlighting

  • When using Markdown's syntax highlighter, you can find the list of Markdown supported syntax highlighters here.

  • Most if not all will correctly appear in your GitHub web editor preview. However not all of them will be highlighted in GitHub Pages due to an unknown limitation.

    The following do not to work at the time of writing: gitattributes, qmake, specfile, ssh-config, wiki.

    The following are rendered/coloured incorrectly in Pages (but correct in GitHub editor preview): ini

  • Shell script syntax highlighter has been disabled (simply by identifying a code block as nosh instead of sh) because it does more harm than good. E.g. it always highlights exec, but doesn't know that it shouldn't highlight when exec is an argument to sfdk.

Templates and forgotten ./precheckin.sh

If you are modifying a template (*.mdpp file), don't forget to run ./precheckin.sh before committing.

Images

There is helper style flex-images for adding images. You can use it as follows:

<div class="flex-images" markdown="1">

* <a href="example1.png"><img src="example1.png" alt="Example image 1"></a>
  <span class="md_figcaption">
    Example image 1
  </span>
</div>

If your image is narrow and tall, like device screenshots, you can use additional narrow-image style on the anchor tag.

<div class="flex-images" markdown="1">

* <a href="example2.png" class="narrow-image"><img src="example2.png" alt="Example narrow image"></a>
  <span class="md_figcaption">
    Example narrow image
  </span>
</div>

You can use the flex-images style to add two narrow images, e.g. device screenshots, on a single row. In this case you don't have to use the narrow-image style. The style will gracefully fall back to displaying the images on separate rows if there isn't enough space to display them on one row.

<div class="flex-images" markdown="1">

* <a href="example1.png"><img src="example1.png" alt="Example image 1"></a>
  <span class="md_figcaption">
    Example image 1
  </span>
* <a href="example2.png"><img src="example2.png" alt="Example image 2"></a>
  <span class="md_figcaption">
    Example image 2
  </span>
</div>

Redirects

Sometimes it is necessary to move a page to a new location. As we can't control all possible links to a page, it might be useful to provide a redirect from the old location to the new. This can be done by leaving a README.md in the old place, with the following line in the front matter:

redirect_to: /new_location

Feedback

Please create a report in the Issues section.

Credits

The following content generators are being used:

docs.sailfishos.org's People

Contributors

daviddarnes avatar dcaliste avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar ericfromcanada avatar gebeto avatar hvianna avatar jovirkku avatar jpwalden avatar jusa avatar laakkonenjussi avatar llewelld avatar martyone avatar mattxwang avatar mkosola avatar olf0 avatar pdmosses avatar pherjung avatar pmarsceill avatar pvuorela avatar rainemak avatar saukko avatar sgtsilvio avatar sledges avatar stefanoborini avatar thaodan avatar thigg avatar tomin1 avatar vigejolla avatar

Stargazers

 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

docs.sailfishos.org's Issues

Full mirror of BIND 9

Folks, let's be a little bit environmentally friendly and don't mirror all the development branches from BIND 9, please.

Either limit the mirror to main and v9_[0-9]* branches or rather fork the GitHub mirror from https://github.com/isc-projects/bind9/ and we'll take care of mirror only the important subset of branches.

Installation/README.md & ssh-keygen

Problem:
Sailfish SDK on windows needs "ssh-keygen.exe", whish is no more included in the following git install:

grafik

Solution:
Add the following instruction:

To install "ssh-keygen.exe" inside MSYS2, run the command:
pacman -S openssh

List of all ports

As mentioned here and here, it could be a good point to have a page listing all active and inactive ports.

Such information are in my opinion relevant:

  • Device name
  • Device model
  • Latest SailfishOS Version
  • Repositories
  • Maintainer
  • Active

Possibility is to add some more details about the port, such what is not working if help is needed, etc. Let's use this issue to discuss about it :)

[Flaw] Cease sending users to malware distributing sites (here: APKPure)!

Jolla still suggests to use APKPure (apkpure.com, apkpure.net), despite APKPure having lost the fight against malicious APKs (e.g. "fake apps", "typo-squatting apps") years ago. While APKPure was and still is one of the best curated, alternative sources for Android apps, simply downloading and installing apps from APKPure's web-site or via the APKPure client app is outright dangerous; only with much know-how, experience and checks & balances (e.g. tediously cross-checking hash values of downloaded APKs with the ones from other alternative app sources; i.e. one must not use the APKPure client app) an APK from APKPure can be assumed to be genuine.

Hence please do stop advertising APKPure and …

  1. … eliminate all references to APKPure at jolla.com, i.e. on the "Services and Support" page (one reference) and in these Sailfish X installation guides (i.e. all of them, except the three for the Xperia X):
  2. … eliminate all references to APKPure at docs.sailfishos.org:

Mind that F-Droid.org and the Google Play Store (via Aurora Store app) are the only two major sources of Android apps, which are not significantly compromised by malware, e.g. "fake apps", "typo-squatting apps" etc.

P.S.: BTW, at a few places APKPure was misspelled as "APKpure".

P.P.S.: See also a similar issue report for Aptoide; eliminating both issues in one go likely requires less effort.

Testing advice page

As discussed at the community meeting from 14th April, I create this issue to discuss specifically about the content of this page.
I first though to a page listing all functions and expected behaviour, but it will be a huge work and I think the testing team already do this.
As mentioned on Community Meeting, best is an test advice page but I don't know exactly which contain belongs there.

Change the default font

Hi, thanks for the new docs website !

The default font (Source Sans Pro) is not as easy for me to read on screen. I suggest a change for a more readable font, such as Arial.

Example of difference:

Source Sans Pro:
sourcesanspro

Arial:
arial

[Flaw] Cease sending users to malware distributing sites (here: Aptoide)!

Jolla still strongly suggests to install Aptiode in its all its Sailfish X installation guides and at docs.sailfishos.org, despite Aptoide having a track record of multiple, big security breaches (the biggest one in 2020, see e.g. TJC and FSO), being flooded with malicious APKs (e.g. "fake apps", "typo-squatting apps") since about a decade (10 years!; examples at FSO: [1], [2]) and the Aptoide client app has become a data collection tool since version 8.0.0 (in 2016).

Hence please do stop advertising Aptoide and …

  1. … remove the Aptoide client app from the Jolla Store for good.
  2. … eliminate all references to Aptoide at jolla.com, i.e. on the "Services and Support" page (one reference) and in every Sailfish X installation guide (really all of them):
  3. … eliminate all references to Aptoide at docs.sailfishos.org:

Mind that F-Droid.org and the Google Play Store (via Aurora Store app) are the only two major sources of Android apps, which are not significantly compromised by malware, e.g. "fake apps", "typo-squatting apps" etc.

P.S.: Aptoide is well known (since its incarnation in 2011) to host some pirated software, hence it might be legally critical for Jolla / Jollyboys to actively advertise Aptoide.

P.P.S.: See also a similar issue report for APKPure; eliminating both issues in one go likely requires less effort.

Search results box expands too much to the right

If one starts typing in the search box, the results panel opens and enlarges to the right-hand-side.

If browser viewport width is narrow, it will even go out of bounds of the view.

A fix would entail adjusting of how upstream just-the-docs implemented the expanding of searchbox, because in their layout it is aligned to the left instead.

Landing page has no "hamburger" menu in a mobile view

When the top main page (https://docs.sailfishos.org) is opened in a mobile view (or narrow desktop window), the header is hidden however no "hamburger" menu is shown to then reveal the search box.

The layout page has been designed differently to the rest of the pages, in a sense that it has only one pane/div, whilst documentation pages have two (one for the navigation bar on the left, and docs content on the right).

The fix would require to implement hamburger menu similar to how Just the Docs implemented it, but over one pane instead.

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.