Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Read the Docs configuration file for MkDocs projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python for docs
build:
os: ubuntu-24.04
tools:
python: "3.12"

mkdocs:
configuration: mkdocs.yml

# Set the build requirements for docs
python:
install:
- requirements: mkdocs_requirements.txt
101 changes: 0 additions & 101 deletions CODE_OF_CONDUCT.md

This file was deleted.

1 change: 1 addition & 0 deletions CODE_OF_CONDUCT.md
101 changes: 101 additions & 0 deletions docs/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for
everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity
and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion,
or sexual identity and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our community include:

- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
- Focusing on what is best not just for us as individuals, but for the overall community

Examples of unacceptable behavior include:

- The use of sexualized language or imagery, and sexual attention or advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email address, without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take
appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits,
issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for
moderation decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing
the community in public spaces. Examples of representing our community include using an official e-mail address, posting
via an official social media account, or acting as an appointed representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible
for enforcement. All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem
in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the
community.

**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation
and an explanation of why the behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series of actions.

**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including
unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding
interactions in community spaces as well as external channels like social media. Violating these terms may lead to a
temporary or permanent ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified
period of time. No public or private interaction with the people involved, including unsolicited interaction with those
enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate
behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within the community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

Community Impact Guidelines were inspired by
[Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq.
Translations are available at https://www.contributor-covenant.org/translations.
4 changes: 2 additions & 2 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ features.

**Contents**

- [Ground rules & expectations](#ground-rules--expectations)
- [Ground rules & expectations](#ground-rules-expectations)
- [Using the issue tracker](#using-the-issue-tracker)
- [Bug reports](#bug-reports)
- [Feature requests](#feature-requests)
- [Contributing code](#contributing-code)
- [Code Guidelines](#code-guidelines)
- [Code style git hooks](#code-style-git-hooks)
- [Community](#Community)
- [Community](#community)

## Ground rules & expectations

Expand Down
12 changes: 4 additions & 8 deletions docs/development/platform/themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ There are two options for using your themes:
you can simply drop the theme folder inside your WireCloud instance folder.
Then you can configure your WireCloud instance for using your theme by
editing the `settings.py` file and modifying the [`THEME_ACTIVE`
setting](../../installation_guide/#theme_active).
setting](../../installation_guide.md/#theme_active).

For example, if you created your WireCloud instance at
`/opt/wirecloud_instance`, the `mytheme` folder should be placed at
Expand All @@ -79,9 +79,9 @@ There are two options for using your themes:
your custom theme.

2. You can package and distribute your theme using the standard tools used in
python for that purpose, e.g. using [setuptools] for building your packages
and [[pypi]](the official repository for distributing software for the Python
programming language) for distributing your theme.
python for that purpose, e.g. using [setuptools](https://setuptools.pypa.io) for building your packages
and [the official repository for distributing software for the Python
programming language](https://pypi.python.org/pypi) for distributing your theme.

Once installed the theme package into the system, virtual env, ... used by
the WireCloud instance, you will be able to use it through the `THEME_ACTIVE`
Expand All @@ -90,10 +90,6 @@ There are two options for using your themes:
> Take into account that in this case you should provide a good module name
> for your theme to avoid any clash with other python modules.

[setuptools]: http://pythonhosted.org/setuptools/
[pypi]: https://pypi.python.org/pypi


## Full theme structure and background details

Themes in WireCloud are Django applications as well as python modules (that is
Expand Down
2 changes: 1 addition & 1 deletion docs/installation_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ The email address that error messages come from, such as those sent to `ADMINS`.

A string representing the module that will be use for theming WireCloud. Current themes shipped with WireCloud are
`wirecloud.defaulttheme`, `wirecloud.fiwaretheme` and `wirecloud.fiwarelabtheme`. You can also use
[custom themes](development/platform/themes).
[custom themes](development/platform/themes.md).

> **NOTE**: `wirecloud.fiwarelabtheme` was previously (WireCloud 0.8.1-) known as `wirecloud.oiltheme`. Although you can
> still reference it as `wirecloud.oiltheme` is recommended to switch to the new name: `wirecloud.fiwarelabtheme`.
Expand Down
2 changes: 1 addition & 1 deletion docs/widgetapi/widgetapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ MashupPlatform.widget.log(msg, level);

- `msg` (_required, string_): is the text of the message to log.
- `level` (_optional, default: `MashupPlatform.log.ERROR`_): This optional parameter specifies the level to use for
logging the message. See [MashupPlatform.log](#mashupplatform-log) for available log levels.
logging the message. See [MashupPlatform.log](#mashupplatformlog) for available log levels.

**Example usage:**

Expand Down
5 changes: 3 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
site_name: WireCloud
site_description: WireCloud Documentation
site_url: https://wirecloud.readthedocs.io/
repo_url: https://github.com/Wirecloud/wirecloud
theme: readthedocs
extra_css: ['https://www.fiware.org/style/fiware_readthedocs.css', 'https://www.fiware.org/style/fiware_readthedocs_processing.css']
google_analytics: ['UA-84269043-1', 'wirecloud.readthedocs.io']

pages:
nav:
- 'Introduction': 'index.md'
- 'Installation Guide': 'installation_guide.md'
- 'Administration Guide': 'administration_guide.md'
Expand All @@ -25,6 +25,7 @@ pages:
- 'Platform Development':
- 'Creating themes': 'development/platform/themes.md'
- 'Contributing': 'CONTRIBUTING.md'
- 'Code of Conduct': 'CODE_OF_CONDUCT.md'
- 'Testing': 'development/platform/testing.md'
- 'Translations': 'development/platform/translation.md'
- 'Appendix: Widgets': 'widgets.md'
Expand Down
4 changes: 2 additions & 2 deletions mkdocs_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mkdocs==1.1
mkdocs==1.6
pymdown-extensions
mkdocs-exclude
mkdocs-exclude