Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
distributed-press-api-client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sutty
distributed-press-api-client
Commits
b17b5e34
Commit
b17b5e34
authored
2 years ago
by
fauno
Browse files
Options
Downloads
Patches
Plain Diff
feat: support env var for changing distributed press url
parent
ae68e85b
Branches
debian/bookworm
Tags
debian/bookworm/4.0.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+7
-0
7 additions, 0 deletions
README.md
lib/jekyll-distributed-press.rb
+1
-1
1 addition, 1 deletion
lib/jekyll-distributed-press.rb
with
8 additions
and
1 deletion
README.md
+
7
−
0
View file @
b17b5e34
...
...
@@ -62,6 +62,13 @@ Build and publish site:
JEKYLL_ENV
=
production
DISTRIBUTED_PRESS_API_KEY
=
the_api_key bundle
exec
jekyll build
```
Other env vars:
```
bash
DISTRIBUTED_PRESS_PROJECT_DOMAIN
=
your.domain.at.distributed.press
DISTRIBUTED_PRESS_API_URL
=
https://api.distributed.press
```
## Contributing
Bug reports and pull requests are welcome on 0xacab.org at
...
...
This diff is collapsed.
Click to expand it.
lib/jekyll-distributed-press.rb
+
1
−
1
View file @
b17b5e34
...
...
@@ -16,7 +16,7 @@ Jekyll::Hooks.register :site, :post_write, priority: :low do |site|
Jekyll
.
logger
.
info
'Distributed Press:'
,
'Publishing website'
distributed_press
=
DistributedPress
.
new
project_domain:
hostname
distributed_press
=
DistributedPress
.
new
(
url:
ENV
[
'DISTRIBUTED_PRESS_API_URL'
],
project_domain:
hostname
)
distributed_press
.
configure
&&
distributed_press
.
publish
(
site
.
dest
)
Jekyll
.
logger
.
info
'Distributed Press:'
,
'Published!'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment