Skip to content

Commit

Permalink
Replace LFDL with LFAI; Close #244 (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordi Noguera authored and dankohn committed Sep 25, 2019
1 parent 329f815 commit 9c321df
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### This is the upstream landscapeapp

If you want to modify the content in the CNCF or LFDL landscapes, please make changes to those downstream repos:
If you want to modify the content in the CNCF or LFAI landscapes, please make changes to those downstream repos:
* https://github.com/cncf/landscape
* https://github.com/LFDLFoundation/lfdl-landscape
* https://github.com/lfai/lfai-landscape
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ dist
.DS_Store

/cncf
/lfdl
/lfai
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Reload with `. ~/.bash_profile` and then use `y open:src`, `yf`, etc. to run fun
If you want to fetch updates to the landscapeapp and both the CNCF and LFAI landscapes and update packages on all three, this alias for your `~/.bash_profile` will do so:

```sh
alias all='for path in /Users/your-username/dev/{landscapeapp,landscape,lfdl-landscape}; do git -C $path pull -p; npm --prefix $path run latest; done;'
alias all='for path in /Users/your-username/dev/{landscapeapp,landscape,lfai-landscape}; do git -C $path pull -p; npm --prefix $path run latest; done;'

```

Expand Down
2 changes: 1 addition & 1 deletion full_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mkdir -p dist
# echo '<head><meta name="google-site-verification" content="27ZKkPQS2PWkd_0jqsSq4yUgUZ_BBTYjABudtQpMhXI" /></head>' > dist/index.html
npm install -g npm
npm ci
bash build.sh LFDLFoundation/lfdl-landscape lfdl master
bash build.sh lfai/lfai-landscape lfai master
bash build.sh cncf/landscape cncf master
bash build.sh lf-edge/lfedge-landscape lf-edge master
# Commenting this because crunchbase fetch is enabled for this issue
Expand Down
2 changes: 1 addition & 1 deletion src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const mainSettings = settings.big_picture.main;
const extraSettings = settings.big_picture.extra;
const thirdSettings = settings.big_picture.third;

// detect an initial prefix, like /cncf/ or /lfdl/ , but it can be just /
// detect an initial prefix, like /cncf/ or /lfai/ , but it can be just /
const possiblePrefix = window.possiblePrefix || '';
const prefix = (possiblePrefix && location.pathname.indexOf(possiblePrefix) === 1) ? (possiblePrefix + '/') : '';
window.prefix = prefix;
Expand Down
6 changes: 3 additions & 3 deletions src/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
<meta name="msvalidate.01" content="<%= htmlWebpackPlugin.options.settings.global.meta.ms_validate %>" />
<title><%= htmlWebpackPlugin.options.settings.global.meta.title %></title>
<script>
const parts = window.location.pathname.split('/'); // for example: /cncf/members or /lfdl/landscape or /a/s/d/f
const parts = window.location.pathname.split('/'); // for example: /cncf/members or /lfai/landscape or /a/s/d/f
if (parts[1] === 'cncf') {
if (parts[3]) {
window.location = '/cncf'
}
}
else if (parts[1] === 'lfdl') {
else if (parts[1] === 'lfai') {
if (parts[3]) {
window.location = '/lfdl'
window.location = '/lfai'
}
}
else if (parts[2]) {
Expand Down
2 changes: 1 addition & 1 deletion tools/settings.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'path';
if (!process.env.PROJECT_PATH) {
console.info('NOTE: the PROJECT_PATH env variable is not set. Please point it to the cncf, lfdl or other landscape repo');
console.info('NOTE: the PROJECT_PATH env variable is not set. Please point it to the cncf, lfai or other landscape repo');
process.env.PROJECT_PATH = path.resolve('../..');
console.info('Using: ', process.env.PROJECT_PATH);
}
Expand Down

0 comments on commit 9c321df

Please sign in to comment.