Skip to content

Commit

Permalink
chore: grow.io -> grow.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydw committed Aug 15, 2021
1 parent d65a4cc commit 7ccfb87
Show file tree
Hide file tree
Showing 13 changed files with 47 additions and 47 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
@@ -1,5 +1,5 @@
FROM ubuntu:focal
MAINTAINER Grow SDK Authors <hello@grow.io>
MAINTAINER Grow.dev Authors <hello@grow.dev>

ARG grow_version
RUN echo "Grow: $grow_version"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.main
@@ -1,5 +1,5 @@
FROM ubuntu:focal
MAINTAINER Grow SDK Authors <hello@grow.io>
MAINTAINER Grow.dev Authors <hello@grow.dev>

RUN echo "Grow: main branch"

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2013-2018 The Grow SDK Authors (http://grow.io)
Copyright (c) 2013-2021 The Grow.dev Authors (http://grow.dev)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion description.txt
@@ -1,5 +1,5 @@
Grow is a fresh, declarative, file-based static site generator for rapid
microsite production. Learn more at https://grow.io.
microsite production. Learn more at https://grow.dev.

Key features:

Expand Down
2 changes: 1 addition & 1 deletion docker_push.sh
Expand Up @@ -23,7 +23,7 @@ docker build --no-cache --build-arg grow_version=$GROW_VERSION \
- < Dockerfile

docker run --rm=true --workdir=/tmp -i grow/base:$GROW_VERSION \
bash -c "git clone https://github.com/grow/grow.io.git && cd grow.io/ && grow install && grow build"
bash -c "git clone https://github.com/grow/grow.dev.git && cd grow.dev/ && grow install && grow build"

if [ "$1" == "gcr.io" ] || [ "$1" == "all" ]; then
# Google cloud registry.
Expand Down
2 changes: 1 addition & 1 deletion grow/commands/group.py
Expand Up @@ -6,7 +6,7 @@
from grow.deployments.destinations import local as local_destination

HELP_TEXT = ('Grow is a declarative file-based website generator. Read docs at '
'https://grow.io. This is version {}.'.format(sdk_utils.VERSION))
'https://grow.dev. This is version {}.'.format(sdk_utils.VERSION))

# pylint: disable=unused-argument
@click.group(help=HELP_TEXT)
Expand Down
32 changes: 16 additions & 16 deletions grow/common/urls_test.py
Expand Up @@ -83,29 +83,29 @@ def test_relative_path_ext_dir(self):

def test_scheme_and_port(self):
"""Scheme and port combinations."""
url = urls.Url('/', host='grow.io')
self.assertEqual('http://grow.io/', str(url))
url = urls.Url('/', host='grow.dev')
self.assertEqual('http://grow.dev/', str(url))

url = urls.Url('/', host='grow.io', scheme='https')
self.assertEqual('https://grow.io/', str(url))
url = urls.Url('/', host='grow.dev', scheme='https')
self.assertEqual('https://grow.dev/', str(url))

url = urls.Url('/', host='grow.io', port=8080)
self.assertEqual('http://grow.io:8080/', str(url))
url = urls.Url('/', host='grow.dev', port=8080)
self.assertEqual('http://grow.dev:8080/', str(url))

url = urls.Url('/', host='grow.io', port=8080, scheme='https')
self.assertEqual('https://grow.io:8080/', str(url))
url = urls.Url('/', host='grow.dev', port=8080, scheme='https')
self.assertEqual('https://grow.dev:8080/', str(url))

url = urls.Url('/', host='grow.io', port=443)
self.assertEqual('https://grow.io/', str(url))
url = urls.Url('/', host='grow.dev', port=443)
self.assertEqual('https://grow.dev/', str(url))

url = urls.Url('/', host='grow.io', port=80)
self.assertEqual('http://grow.io/', str(url))
url = urls.Url('/', host='grow.dev', port=80)
self.assertEqual('http://grow.dev/', str(url))

url = urls.Url('/', host='grow.io', scheme='http')
self.assertEqual('http://grow.io/', str(url))
url = urls.Url('/', host='grow.dev', scheme='http')
self.assertEqual('http://grow.dev/', str(url))

url = urls.Url('/', host='grow.io', scheme='http', port=443)
self.assertEqual('http://grow.io:443/', str(url))
url = urls.Url('/', host='grow.dev', scheme='http', port=443)
self.assertEqual('http://grow.dev:443/', str(url))


if __name__ == '__main__':
Expand Down
20 changes: 10 additions & 10 deletions grow/common/utils_test.py
Expand Up @@ -15,27 +15,27 @@ class UtilsTestCase(unittest.TestCase):

def test_clean_google_href(self):
# Test without a match.
raw_input = '<a href="https://grow.io/">Link</a>'
expected = '<a href="https://grow.io/">Link</a>'
raw_input = '<a href="https://grow.dev/">Link</a>'
expected = '<a href="https://grow.dev/">Link</a>'
actual = utils.clean_html(raw_input)
self.assertEqual(expected, actual)

# Test with ?q=
raw_input = '<a href="https://www.google.com/url?q=https%3A%2F%2Fgrow.io%2Fdocs%2F">Google Search</a>'
expected = '<a href="https://grow.io/docs/">Google Search</a>'
raw_input = '<a href="https://www.google.com/url?q=https%3A%2F%2Fgrow.dev%2Fdocs%2F">Google Search</a>'
expected = '<a href="https://grow.dev/docs/">Google Search</a>'
actual = utils.clean_html(raw_input)
self.assertEqual(expected, actual)

# Test with &q=
raw_input = '<a href="https://www.google.com/url?sa=t&q=https%3A%2F%2Fgrow.io%2Fdocs%2F">Google Search</a>'
expected = '<a href="https://grow.io/docs/">Google Search</a>'
raw_input = '<a href="https://www.google.com/url?sa=t&q=https%3A%2F%2Fgrow.dev%2Fdocs%2F">Google Search</a>'
expected = '<a href="https://grow.dev/docs/">Google Search</a>'
actual = utils.clean_html(raw_input)
self.assertEqual(expected, actual)

def test_clean_html_markdown(self):
# Test without a match.
raw_input = '<a href="https://grow.io/">Link</a>'
expected = '[Link](https://grow.io/)'
raw_input = '<a href="https://grow.dev/">Link</a>'
expected = '[Link](https://grow.dev/)'
actual = utils.clean_html(raw_input, convert_to_markdown=True)
self.assertEqual(expected, actual)

Expand Down Expand Up @@ -176,13 +176,13 @@ def test_parse_deep_yaml_strings(self):

def test_process_google_comments(self):
# Google comment link.
raw = '<div><a id="cmnt" href="https://grow.io/">Link</a></div>'
raw = '<div><a id="cmnt" href="https://grow.dev/">Link</a></div>'
expected = ''
actual = utils.clean_html(raw)
self.assertEqual(expected, actual)

# Google footnote link.
raw = '<sup><a id="ftnt" href="https://grow.io/">Link</a></sup>'
raw = '<sup><a id="ftnt" href="https://grow.dev/">Link</a></sup>'
expected = ''
actual = utils.clean_html(raw)
self.assertEqual(expected, actual)
Expand Down
6 changes: 3 additions & 3 deletions grow/sdk/updater.py
Expand Up @@ -92,7 +92,7 @@ def check_for_updates(self, auto_update_prompt=False, force=False):

if sem_latest.major > sem_current.major:
logging.info('')
logging.info(' A new major version of the Grow SDK is available.')
logging.info(' A new major version of Grow.dev is available.')
logging.info(' Major version changes can be backwards incompatible.')
logging.info(' Please check the release notes for upgrade instructions.')
logging.info(' Release notes: {}'.format(url))
Expand All @@ -102,7 +102,7 @@ def check_for_updates(self, auto_update_prompt=False, force=False):
return

logging.info('')
logging.info(' Please update to the newest version of the Grow SDK.')
logging.info(' Please update to the newest version of Grow.dev.')
logging.info(' Release notes: {}'.format(url))
logging.info(' Your version: {}, latest version: {}'.format(
colors.stylize(str(sem_current), colors.EMPHASIS),
Expand Down Expand Up @@ -156,7 +156,7 @@ def verify_required_version(self):
grow_version_pattern = '{}-'.format(grow_version_pattern)
spec_required = semantic_version.SimpleSpec(grow_version_pattern)
if sem_current not in spec_required:
text = 'ERROR! Pod requires Grow SDK version: {}'.format(
text = 'ERROR! Pod requires Grow.dev version: {}'.format(
self.pod.grow_version)
logging.error(colors.stylize(text, colors.ERROR))
raise LatestVersionCheckError(text)
4 changes: 2 additions & 2 deletions grow/ui/admin/views/base.html
Expand Up @@ -34,8 +34,8 @@ <h1>{{pod.title}}</h1>
</main>
<footer>
<p>
Visit <a href="https://grow.io">grow.io</a> to learn more about Grow
and visit the <a href="https://grow.io/docs">documentation</a>.
Visit <a href="https://grow.dev">grow.dev</a> to learn more about Grow
and visit the <a href="https://grow.dev/docs">documentation</a>.
</p>
</footer>
</body>
10 changes: 5 additions & 5 deletions install.py
@@ -1,7 +1,7 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-

"""Standalone Grow SDK installer. Downloads Grow SDK and sets up command aliases."""
"""Standalone Grow.dev installer. Downloads Grow.dev and sets up command aliases."""

import argparse
import datetime
Expand Down Expand Up @@ -121,12 +121,12 @@ def install(rc_path=None, bin_path=None, force=False):

bin_path = os.path.expanduser(bin_path or BIN_PATH)
bin_dir = os.path.dirname(bin_path)
rc_comment = '# Added by Grow SDK Installer ({})'.format(
rc_comment = '# Added by Grow.dev Installer ({})'.format(
datetime.datetime.now())
rc_path = os.path.expanduser(rc_path or get_rc_path())
rc_path_append = 'export PATH={}:$PATH'.format(bin_dir)

hai('{yellow}Welcome to the installer for Grow SDK v{}{/yellow}', version)
hai('{yellow}Welcome to the installer for Grow.dev v{}{/yellow}', version)
hai('{yellow}Release notes: {/yellow}https://github.com/grow/grow/releases/tag/{}', version)
hai('{yellow}[ ]{/yellow} {green}This script will install:{/green} {}', bin_path)

Expand Down Expand Up @@ -179,10 +179,10 @@ def install(rc_path=None, bin_path=None, force=False):
if 'Text file busy' in str(e):
hai('Unable to overwrite {}. Try closing Grow and installing again.'.format(
bin_path))
hai('You can use the installer by running: curl https://install.grow.io | bash')
hai('You can use the installer by running: curl https://install.grow.dev | bash')
sys.exit(-1)
raise
hai('{green}[✓] Installed Grow SDK to:{/green} {}', bin_path)
hai('{green}[✓] Installed Grow.dev to:{/green} {}', bin_path)
stat = os.stat(bin_path)
os.chmod(bin_path, stat.st_mode | 0o111)
finally:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -11,5 +11,5 @@
"bugs": {
"url": "https://github.com/grow/grow/issues"
},
"homepage": "https://grow.io"
"homepage": "https://grow.dev"
}
8 changes: 4 additions & 4 deletions setup.py
@@ -1,4 +1,4 @@
"""Grow Setup."""
"""Grow.dev setup."""

import re
from setuptools import find_packages
Expand Down Expand Up @@ -35,11 +35,11 @@
'site generator for rapid, high-quality web site production.'
),
long_description=open('description.txt').read().strip(),
url='https://grow.io',
url='https://grow.dev',
zip_safe=False,
license='MIT',
author='Grow SDK Authors',
author_email='code@grow.io',
author='Grow.dev Authors',
author_email='code@grow.dev',
include_package_data=True,
packages=find_packages(exclude=[
'lib*',
Expand Down

0 comments on commit 7ccfb87

Please sign in to comment.