Skip to content

conflict resolution for nginx guides #1501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 106 commits into from
Feb 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
e58eca6
[UPDATE] Install Cpanel (#1399)
Guaris Jan 15, 2018
d2f52ce
Update requirements.txt (#1400)
Jskobos Jan 15, 2018
dd1ec66
Add script for identifying old non-deprecated guides (#1394)
Jskobos Jan 15, 2018
b4ae7ec
Remove non-existent image reference
Jan 15, 2018
73f50a5
Rebuild theme
Jan 15, 2018
05f7ea7
Update email-with-postfix-dovecot-and-mysql.md (#1405)
Guaris Jan 16, 2018
aa9844d
Find old guides (#1404)
Jskobos Jan 16, 2018
e0c3378
Added Image (#1406)
Guaris Jan 16, 2018
27ac209
[UPDATE] Use Authy in two-factor authentication instructions (#1401)
Jskobos Jan 16, 2018
dd555ca
quick edit to line up numbers
EdwardAngert Jan 16, 2018
282456c
Incorrect spelling on terraform description
GuessWhoSamFoo Jan 16, 2018
30fd01b
Deprecate oracle xe (#1409)
Jskobos Jan 17, 2018
c477669
[UPDATE] Manipulate Lists with sort and uniq (#1408)
Jskobos Jan 17, 2018
70d2b81
Meltdown update jan17 (#1413)
EdwardAngert Jan 17, 2018
f71ef3f
Rebuild theme
Jskobos Jan 17, 2018
d33917a
fixed anchor link to how to reboot (#1415)
EdwardAngert Jan 17, 2018
fc88011
serivce -> service (#1416)
movesmyers Jan 18, 2018
4534582
Remove duplicated word in how-to-install-postgresql-on-ubuntu-16-04.m…
Jan 18, 2018
18bcb7a
Rebuild theme
Jan 18, 2018
74614c6
Add first-timers-only badge (#1412)
GuessWhoSamFoo Jan 18, 2018
6be72c4
Alpine Linux tech fixes (#1403)
Jan 18, 2018
b327f9f
Updated for newer inittab config.
cwlinode Jan 18, 2018
feb5718
Add Code of Conduct as exception to test_filename.py (#1423)
EdwardAngert Jan 18, 2018
171d912
Clear redirects with trailing slashes
Jan 18, 2018
987d4f2
Header changes and more indentation fixes (#1362)
GuessWhoSamFoo Jan 18, 2018
93d96e8
Dockertalk image (#1425)
Jskobos Jan 18, 2018
00082c7
remove duplicates reported in #1418 (#1419)
Jan 19, 2018
42f5de1
Fix redundant wording (#1420)
Jan 19, 2018
80d604e
Update UFW with h1 (#1315)
Jskobos Jan 19, 2018
5bfd477
typo: spelling error "impove" edited to "improve" (#1429)
climateamante Jan 22, 2018
5bb1b88
Re-add deleted run command (#1432)
Jskobos Jan 22, 2018
05816c4
removed comma and lonely step 1
EdwardAngert Jan 23, 2018
3619510
colon to period
EdwardAngert Jan 23, 2018
7f2d610
Minor edits from feedback
Jskobos Jan 23, 2018
444632d
More minor fixes
Jskobos Jan 23, 2018
61f97b4
Rebuild theme
Jskobos Jan 23, 2018
01341be
[UPDATE] Mail server update (#1424)
Guaris Jan 23, 2018
692e7c6
Formatting fixes for misc documents (#1435)
GuessWhoSamFoo Jan 24, 2018
9b13bb4
Guess who sam foo ssh mixed indent (#1441)
Jskobos Jan 24, 2018
2f4fbcd
Add Authy clarification (#1442)
Jskobos Jan 24, 2018
20f4118
[NEW] code of conduct (#1422)
EdwardAngert Jan 24, 2018
91ccede
move Code of conduct up one (#1444)
EdwardAngert Jan 24, 2018
ed5c5b0
[NEW] Rancher (#1396)
Guaris Jan 24, 2018
13b8125
rm leftover code of conduct in docs
EdwardAngert Jan 24, 2018
1a2c262
Changed Meltdown fix to deployed (#1447)
GuessWhoSamFoo Jan 25, 2018
23fd207
[NEW] Chmod File Permissions (#1434)
GuessWhoSamFoo Jan 25, 2018
09002dd
Revert "[NEW] Chmod File Permissions (#1434)"
EdwardAngert Jan 25, 2018
c0779a0
Merge pull request #1448 from linode/revert-1434-chmod
EdwardAngert Jan 25, 2018
016660c
[NEW] Chmod guide update (#1449)
EdwardAngert Jan 25, 2018
05e8ed1
[NEW] Install R on Debian and Ubuntu and NEW] Deploy RStudio on Debia…
Jskobos Jan 29, 2018
97eb6fe
SOA = Start Of Authority (#1451)
af3556 Jan 29, 2018
edfd867
Rebuild theme
Jan 29, 2018
4b00cf4
Guaris jails update (#1458)
Jskobos Jan 29, 2018
0ad3e1e
[NEW] How to Install Go on Ubuntu (#1459)
Jskobos Jan 29, 2018
e569cf4
[NEW] Deploying microservices with docker (#1364)
Guaris Jan 30, 2018
d559378
Removed deprecated shortcodes
Jan 30, 2018
b0e1ff1
[update]Fulll-virt disclaimer to block storage guide. (#1460)
cwlinode Jan 30, 2018
a157bd0
Update install-alpine-linux-on-your-linode.md
cwlinode Jan 30, 2018
f9e3cb3
Update how-to-use-block-storage-with-your-linode.md
cwlinode Jan 30, 2018
ddac055
[NEW] Thingsboard Guide (#1374)
Jskobos Jan 30, 2018
f53dac5
[UPDATE] Create Physical Backups of a MySQL Database [UPDATE] Use mys…
cwlinode Jan 31, 2018
5d7239c
Fix spelling errors from Vale initial fix (#1470)
GuessWhoSamFoo Jan 31, 2018
2f0a710
Rebuild theme
cwlinode Jan 31, 2018
c86e164
Fix indentation for code blocks in sublists
Jan 31, 2018
281b247
[NEW] Elasticsearch plugins -Tylerjl (#1368)
Guaris Jan 31, 2018
ae178f7
Update index
Jskobos Jan 31, 2018
be5a67c
Clear contribute.md topics list (#1475)
Jskobos Feb 1, 2018
13cdfe6
Initial block storage fixes (#1476)
GuessWhoSamFoo Feb 1, 2018
220939a
GB -> GiB for block storage
Feb 1, 2018
9f7ec99
Add test case for file extensions (#1471)
Jskobos Feb 1, 2018
e8b8738
Remove incorrect guide
Jskobos Feb 1, 2018
3bd90b9
Replace 'Icinga2' with 'Icinga 2' (#1481)
gunnarbeutner Feb 2, 2018
8942661
FarmOS title rename (#1480)
Guaris Feb 2, 2018
9792121
Rebuild theme
Jskobos Feb 2, 2018
98f1ed7
Data center is two words (#1479)
GuessWhoSamFoo Feb 2, 2018
c9b2099
Add January banner images (#1485)
Jskobos Feb 2, 2018
68afdac
[UPDATE] Install Caddy on CentOS
Guaris Feb 2, 2018
6f17eed
Merge branch 'master' of https://github.com/linode/docs
Jskobos Feb 2, 2018
8978df8
[NEW] Split Files on Linux (#1461)
Jskobos Feb 2, 2018
133a953
[NEW] Tar and Gzip Quick Answer (#1478)
Jskobos Feb 2, 2018
f78c98b
[UPDATE] View the Beginning of Text Files with head (#1484)
Jskobos Feb 2, 2018
41e4399
Merge branch 'master' of https://github.com/linode/docs
Jskobos Feb 2, 2018
79075d3
Rebuild index/theme
Jskobos Feb 2, 2018
5622c37
Fix spelling mistakes and indentation ending in websites (#1487)
GuessWhoSamFoo Feb 2, 2018
fe530e7
Fix spelling to security section from Vale (#1486)
GuessWhoSamFoo Feb 2, 2018
dafdedc
Update title
Jskobos Feb 2, 2018
c97a68c
Update how-to-use-yubikey-for-two-factor-ssh-authentication.md (#1488)
Feb 5, 2018
f107a27
[UPDATE] How to Grep for Text in Files | Update guide (#1483)
Jskobos Feb 5, 2018
5eac812
Grammar fixes from Vale (#1489)
GuessWhoSamFoo Feb 5, 2018
12dea17
Fixes to avoid incorrect dictionary generation (#1492)
GuessWhoSamFoo Feb 5, 2018
56b6c33
Style fixes from Vale (#1490)
GuessWhoSamFoo Feb 6, 2018
c2288d8
Additional Vale fixes (#1495)
GuessWhoSamFoo Feb 6, 2018
c12d6f8
Fix minor spelling and style errors
Feb 6, 2018
3879692
Add banner image and fix title (#1496)
Jskobos Feb 6, 2018
346963f
Rebuild theme
Jskobos Feb 6, 2018
7c86132
Add Vale to Travis CI (#1474)
jdkato Feb 7, 2018
47475cc
Merge remote-tracking branch 'upstream/master'
Jskobos Feb 7, 2018
bc2e2f0
Parallelize TravisCI for pytest and Vale (#1497)
GuessWhoSamFoo Feb 7, 2018
0e6dffe
Merge remote-tracking branch 'upstream/master'
Jskobos Feb 7, 2018
33cbb54
Remove NGINX reverse proxy guide
Jskobos Feb 7, 2018
7fc38e6
Fix broken anchor link in Static IP guide (#1499)
Jskobos Feb 7, 2018
35a3f40
Update image alt tags and meta descriptions (#1498)
GuessWhoSamFoo Feb 7, 2018
5ec7b38
Rebuild theme
Feb 7, 2018
f98c9e8
resolved merge conflicts
EdwardAngert Feb 8, 2018
b422950
fixed link in deb 8 lemp
EdwardAngert Feb 8, 2018
7fa60f2
removed Gists from example
EdwardAngert Feb 8, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
39 changes: 14 additions & 25 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,21 @@
language: python
python:
- "3.6"

cache:
pip: true
directories:
- node_modules
matrix:
include:
- python: "3.6"

before_install:
- echo "Installing Hugo 0.31.1"
# - curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
# - sudo apt install nodejs
- wget https://github.com/gohugoio/hugo/releases/download/v0.31/hugo_0.31_Linux-64bit.deb
- sudo dpkg -i hugo*.deb
- hugo version
# - sudo npm install --global gulp-cli
# - npm install

install:
- echo "Install pytest and pip"
- pip install -r ci/requirements.txt
env:
- TEST_SUITE=vale
- TEST_SUITE=pytest

before_script:
- echo "Setting up local development server"
- hugo server &
- sleep 7
before_install:
- if [ $TEST_SUITE == pytest ]; then
wget https://github.com/gohugoio/hugo/releases/download/v0.36/hugo_0.36_Linux-64bit.deb;
sudo dpkg -i hugo*.deb;
(hugo server &);
fi
- sleep 7

script:
- echo "Checking for style guidelines"
- python -m pytest -n 2

- ./ci/scripts/$TEST_SUITE.sh
32 changes: 32 additions & 0 deletions .vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
StylesPath = ci/vale/styles

# The minimum alert level to display (suggestion, warning, or error).
#
# CI builds will only fail on error-level alerts.
MinAlertLevel = warning

# HTML tags to be ignored by Vale. `code` and `tt` are the default, but Linode
# seems to use `strong` in a similar ways -- e.g., `**docker build -t ubuntu**`,
# which could trigger two style issues ("docker" and "ubuntu") but is actually
# a command.
IgnoredScopes = code, strong, tt

# Specifies what Vale considers to be a boundary between words.
WordTemplate = \s(?:%s)\s

[*.md]
# A Linode-specific style (see ci/vale/styles/Linode) that implements spelling
# and capitalization rules.
#
# To add another style, just add it to the `StylesPath` and update the setting
# below (e.g., `BasedOnStyles = Linode, AnotherStyle`).
BasedOnStyles = Linode

# Exclude `{{< file >}}`, `{{< file-excerpt >}}`, `{{< output >}}`,
# and `{{< highlight ... >}}`.
#
# For a description (and unit tests) for these patterns see:
# https://regex101.com/r/m9klBv/3/tests
IgnorePatterns = (?s) *({{< output >}}.*?{{< ?/ ?output >}}), \
(?s) *({{< ?file(?:-excerpt)? [^>]* ?>}}.*?{{< ?/ ?file(?:-excerpt)? ?>}}), \
(?s) *({{< highlight \w+ >}}.*?{{< ?/ ?highlight >}})
73 changes: 73 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Linode Code of Conduct

## Our Pledge

In order to encourage an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of:

* age
* body size
* disability
* ethnicity
* gender identity and expression
* level of experience
* nationality
* personal appearance
* race
* religion
* sexual identity and orientation

## Our Standards

You can contribute to creating a positive environment in many ways. For example you can:

* use welcoming and inclusive language
* be respectful of differing viewpoints and experiences
* accept constructive criticism gracefully
* focus on what is best for the community
* show empathy towards other community members
* be helpful and understanding

You should not:

* use sexualized language or imagery
* make unwelcome sexual advances
* troll, and make insulting or derogatory comments
* make personal or political attacks
* harass others, in public or private
* publish others' private information, such as a physical or electronic address, without explicit permission
* engage in any other conduct which could reasonably be considered bullying or inappropriate in a professional setting

## Our Responsibilities

As project maintainers, we are responsible for clarifying the standards of acceptable behavior and we are expected to take appropriate and fair corrective action in response to any instances of unacceptable behaviour.

We have the right and responsibility to remove, edit, or reject:

* comments
* commits
* code
* issues
* other contributions that are not aligned to this code of conduct

We also reserve the right to temporarily or permanently ban any contributor for other behaviors we deem inappropriate, threatening, offensive, or harmful.

## Scope

This code of conduct applies whenever you are representing the project or community. For example you may be:

* working in a project space online or in the public
* using an official project email address
* posting via an official social media account
* participating in an online or offline event

Project maintainers may further define and clarify representation of a project.

## Enforcement

You should report any instances of abusive, harassing, or otherwise unacceptable behaviour to the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain the anonymity of the reporter of an incident. We may post further details of specific enforcement policies separately.

Project contributors who do not follow or enforce this code of conduct in good faith may face temporary or permanent consequences. These will be determined by members of the project's leadership.

## Attribution

This code of conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, and the [gov.uk open standards CODE_OF_CONDUCT.md](https://github.com/alphagov/open-standards/blob/master/CODE_OF_CONDUCT.md).
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![Linode logo](docs/assets/linode_readme_logo.png)

# Guides and Tutorials [![License: CC BY 4.0](https://img.shields.io/badge/License-CC%20BY%204.0-blue.svg)](https://creativecommons.org/licenses/by/4.0/)
# Guides and Tutorials [![License: CC BY 4.0](https://img.shields.io/badge/License-CC%20BY%204.0-blue.svg)](https://creativecommons.org/licenses/by/4.0/) [![first-timers-only](http://img.shields.io/badge/first--timers--only-friendly-blue.svg)](http://www.firsttimersonly.com/)

<img align="right" width="100" height="100" src="docs/assets/linode_readme_book.png">

Expand All @@ -20,7 +20,7 @@

## How can I write a guide?

We are constantly looking to impove the quality of our library. See our [rotating list of suggested topics](https://www.linode.com/docs/contribute/).
We are constantly looking to improve the quality of our library. See our [rotating list of suggested topics](https://www.linode.com/docs/contribute/).

More detailed instructions on submitting a pull request can be found [here](CONTRIBUTING.md).

19 changes: 13 additions & 6 deletions ci/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,30 @@ def wrapper(md_filepath):
return wrapper

@pytest.fixture(scope='module', autouse=True)
def md_index(path='.', extension='*.md'):
def file_index(path='.', extension=None):
"""
Traverses root directory
"""
index = []
exclude_dir = ['node_modules', 'archetypes']
exclude_file = ['_index.md']
exclude_dir = ['node_modules', 'archetypes', '.git']
exclude_file = ['_index.md','.gitignore']
for root, dirnames, filenames in os.walk(path):
dirnames[:] = [d for d in dirnames if d not in exclude_dir]
for filename in fnmatch.filter(filenames, extension):
if extension:
filter_ext = fnmatch.filter(filenames, extension)
else:
filter_ext = filenames #Filter nothing
for filename in filter_ext:
if filename in exclude_file:
continue
index.append(os.path.join(root, filename))
return index


@pytest.fixture(params=md_index())
@pytest.fixture(params=file_index(extension='*.md'))
def md_filepath(request):
return request.param

@pytest.fixture(params=file_index(extension=None))
def all_filepaths(request):
return request.param

4 changes: 4 additions & 0 deletions ci/scripts/pytest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

pip install -r ci/requirements.txt
python -m pytest -n 2
4 changes: 4 additions & 0 deletions ci/scripts/vale.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

go get github.com/ValeLint/vale
vale --glob='*.{md}' docs
10 changes: 10 additions & 0 deletions ci/test_extensions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import pytest
import os

def test_extension(all_filepaths):
"""
Tests that all file extensions are lowercase.
Ignores files without an extension.
"""
filename, file_extension = os.path.splitext(all_filepaths)
assert file_extension == file_extension.lower(), 'File extensions must be lowercase.'
2 changes: 1 addition & 1 deletion ci/test_filename.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Cartesian product of file names and extensions
# e.g. README.txt, README.md, CHANGELOG.txt, CHANGELOG.md ...
file_extensions = ['txt', 'md']
names = ['README', 'CHANGELOG', 'CONTRIBUTING', 'LICENSE']
names = ['README', 'CHANGELOG', 'CONTRIBUTING', 'LICENSE', 'CODE_OF_CONDUCT']
exempt_files = [('.'.join(x)) for x in itertools.product(names, file_extensions)]

def test_filename(md_filepath):
Expand Down
Loading