Skip to content
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

Logo in thumbnail #258

Open
sjamesparsonsjr opened this issue Oct 18, 2019 · 8 comments
Open

Logo in thumbnail #258

sjamesparsonsjr opened this issue Oct 18, 2019 · 8 comments
Labels

Comments

@sjamesparsonsjr
Copy link
Contributor

On the website when I do a search, are the thumbnails generated from the logo file? I've uploaded a couple of logo's and they are loaded to the webpage but not in the thumbnail.

@100ideas
Copy link
Member

100ideas commented Oct 18, 2019

the list of entries you see at sphere.diybio.org/browse/?q=XXX is generated by algolia - see assets/js/browse_instantsearch.es6

a process runs during the build step that reindexes all the content on the site and sends it to algolia. the the site uses algolia's api to generate these dynamic views (search box drop-down and the list under /browse/*).

algolia doesn't return all the attirbutes for each record, instead the returned attributes are defined in config.yaml under the key attributesToRetrieve

you can see in that configuration that algolia is supposed to be returning logo attributes.

  1. so either there is some kind of misconfiguration with algolia,

or

  1. the jekyll code that is repsonisble for finding a logo.ext file in the entry folder and mapping it to the logo attribute is not working correctly.

I'm not sure what's going on. It's odd that the logo shows up on the entry page but not in the browse list.

I had to fix a related problem with missing images in the image carousel on the home page a year ago. Here is how jekyll conditionally checks to see if a promotion exists and what image to use for it:

{% for files in site.collections %}

I don't have time to figure it out right now but hopefully these clues help.

@100ideas
Copy link
Member

Ok, this is how jekyll resolves potential logo files in the repo to the logo attribute for each entry: https://github.com/DIYbiosphere/sphere/blob/master/_plugins/jekyll-sibling-images.rb#L18

  1. looks like theres a typo in some of the logoPathSVG logic - it's using logoPathJPG instead of logoPathSVG.

  2. this matcher doesn't seem very tolerant of spelling variations in the name Logo.png vs logo.png vs logo.JPG or logo.JPEG.

  3. in fact it needs header images to be named as lowercase header.ext https://github.com/DIYbiosphere/sphere/blob/master/_plugins/jekyll-sibling-images.rb#L42

I renamed your Header.png to header.png... wondering if that will at least get your header image showing up.

@100ideas
Copy link
Member

100ideas commented Oct 18, 2019

I think this commit is the key to the problem a76bac7 - we should experiment with reverting it / rewriting it. Maybe the uberimage field is clobbering the logo somehow?

also the header is now showing up on your page after renaming it lowercase. so we should convert the paths to lowercase and deal with variations of the image extensions.

@100ideas
Copy link
Member

great work so far @sjamesparsonsjr!

I found another clue to the mystery of the missing logos in the 'browse' view after noticing that you got the logo for Allevi working (by uploading the logo as logo.jpg).

On 7-mar-2018 @jasonbobe created Allevi's initial _startups/Allevi/Allevi.md. The folder did not include any logo.ext files.

Then at some point the netlify builds started failing.

Three days ago, on 15-oct-2019, @sjamesparsonsjr added _startups/Allevi/logo.png

The builds were still failing so no updates were propagated to the production site and thus the logo didn't show up (I think).

After fixing the bug breaking netlify's preview & build pipeline, #255 was the first commit/merge to trigger a successful build (netlify deploy log) for the production site. So it included the Allevi logo.png from three days ago.

However, the Allevi logo.png was not showing up in the browse view (check netlify's archive of the build here:

Screen Shot 2019-10-18 at 12 01 38 PM

Even more weirdly, the reason it wasn't showing up seems to be because the logo property for Allevi in jekyll/algolia was resolving to /startups/Allevi/logo.jpg, which didn't exist in the repo (png did).

  1. I don't understand how Alevii'slogo jekyll prop got set to look for logo.jpg. As far as I can tell the file was always a png up to that point. Perhaps the jekyll-sibling-images.rb plugin successfully noticed the logo file, but then assigned the incorrect jpg extension somehow?

  2. Jekyll computes the browse list view from a live index of values provided by the algolia api. Currently algolia's record for Alevii has `"logo": "/startups/Allevi/logo.jpg". This is how (I think) the earlier build ended up with the broken image link - that's the path it was given by algolia.

Screen Shot 2019-10-18 at 12 00 30 PM

So either the browse view is actually gotting an out-of-date index from algolia, or something in jekyll like the image plugin is setting the wrong value for the logo's exension and passing that to algolia during the build process (in which case algolia is probably working fine).

@100ideas
Copy link
Member

I am now uncertain about the API key we are using to access the algolia index.

We use algolia's instantsearch js package in two places to fetch records from the algolia index when computing views: assets/js/browse_instantsearch.es6 & assets/js/autocomplete.es6.

Instantsearch has three required parameters (docs):

appId string
The Algolia application ID

apiKey string
The Algolia search-only API key

indexName string
The name of the main index

jekyll-algolia is used on the server during build to write updates to the algolia index. It uses a different secret API key.

Currently the secret key is set with the value of the Admin API Key from my user's algolia API Keys dashboard.

Likewise the values for application_id, index_name, search_only_api_key under algolia in _config.yaml are from my user's api dashboard.

However, the api_key provided to the two instances of instantsearch above is different from search_only_api_key in _config.yaml: they are hardcoded to use @sabgaby's Search API key:

Screen Shot 2019-10-18 at 12 26 17 PM

Gaby & I are both members of the algolia team that administers the diybiosphere algolia index, and since my algolia dashboard also displays a variety of other user's search api keys, I had assumed that the keys were for partionining api access by user, but would be accessing the same index.

Now I'm not so sure. So I'm gonna set up instantsearch & autocomplete to read parameters from _config.yaml which currently contains my credentials. (currently set with my credentials but not clear that any code is using them) and see if instantsearch starts providing more/updated results.

100ideas referenced this issue Oct 18, 2019
configure instantsearch by reading algolia settings in _config.yml; increase default number for results per page from 10 to 100
@100ideas
Copy link
Member

100ideas commented Oct 18, 2019

set up instantsearch & autocomplete to get config from _config.yaml via window global variable set in _layouts/default.html.

This didn't have an obvious effect (everything still works as well as before), so I guess we can rule out the api keys as the problem.

then I added some logging statements to the jekyll-sibling-images.rb plugin to verify it is actually finding logo files, and it appears to be. See the deploy log below, lots of logo paths printed.

so I read some more about how algolia-jekyll works and I basically can't understand from the docs if it is able to pick up on the logo variables jekyll-sibling-image is injecting into jekyll's app state. The latter does so like so (for docs that exist in directory that also have a logo.ext file):

doc.data["logo"] = '/'+ logoPathJPG

It seems clear from logs that algolia-jekyll basically re-runs jekyll while watching it, discovers all the static files jekyll created, slices those up into content fragments based on the html tags, and ships them up to the algolia indexer.

It runs after jekyll finishes building the static files for the site.

To continue with this, it would be smart to start running jekyll locally so it is easier to inspect the generated static files... will the yaml frontmatter include 'logo' fields from the sibling image plugin?


netlify build log w/ using jekyll --verbose

2:48:57 PM: Build ready to start
2:49:00 PM: build-image version: 8e315e54bc4032a32e73290be556cde4f8348c12
2:49:00 PM: build-image tag: v2.8.2
2:49:00 PM: buildbot version: 42a7c7b5aff184339e8bdfbef0257099997cd97c
2:49:00 PM: Fetching cached dependencies
2:49:01 PM: Starting to download cache of 458.3MB
2:49:03 PM: Finished downloading cache in 2.914232815s
2:49:03 PM: Starting to extract cache
2:49:10 PM: Finished extracting cache in 6.427351408s
2:49:10 PM: Finished fetching cache in 9.507533064s
2:49:10 PM: Starting to prepare the repo for build
2:49:10 PM: Preparing Git Reference refs/heads/staging
2:49:12 PM: Starting build script
2:49:12 PM: Installing dependencies
2:49:12 PM: Started restoring cached node version
2:49:14 PM: Finished restoring cached node version
2:49:14 PM: v10.16.3 is already installed.
2:49:16 PM: Now using node v10.16.3 (npm v6.9.0)
2:49:17 PM: Attempting ruby version 2.6.2, read from .ruby-version file
2:49:18 PM: Using ruby version 2.6.2
2:49:18 PM: Using PHP version 5.6
2:49:18 PM: Started restoring cached ruby gems
2:49:18 PM: Finished restoring cached ruby gems
2:49:18 PM: Installing gem bundle
2:49:21 PM: Fetching gem metadata from https://rubygems.org/
2:49:22 PM: .
2:49:22 PM: .
2:49:22 PM: .
2:49:22 PM: .
2:49:23 PM: .
2:49:23 PM: .
2:49:23 PM: .
2:49:23 PM: .
2:49:23 PM: .
2:49:23 PM: .
2:49:24 PM: Fetching gem metadata from https://rubygems.org/
2:49:24 PM: .
2:49:24 PM: Resolving dependencies...
2:49:24 PM: Using concurrent-ruby 1.1.5
2:49:24 PM: Using i18n 0.9.5
2:49:24 PM: Using minitest 5.12.2
2:49:24 PM: Using thread_safe 0.3.6
2:49:24 PM: Using tzinfo 1.2.5
2:49:24 PM: Using zeitwerk 2.2.0
2:49:24 PM: Using activesupport 6.0.0
2:49:24 PM: Using public_suffix 4.0.1
2:49:24 PM: Using addressable 2.7.0
2:49:24 PM: Using json 2.2.0
2:49:24 PM: Using mini_portile2 2.4.0
2:49:24 PM: Using nokogiri 1.10.4
2:49:24 PM: Using algolia_html_extractor 2.6.2
2:49:24 PM: Using httpclient 2.8.3
2:49:24 PM: Using algoliasearch 1.27.1
2:49:24 PM: Using bundler 2.0.1
2:49:24 PM: Using colorator 1.1.0
2:49:24 PM: Using eventmachine 1.2.7
2:49:24 PM: Using http_parser.rb 0.6.0
2:49:24 PM: Using em-websocket 0.5.1
2:49:24 PM: Using ffi 1.11.1
2:49:24 PM: Using ethon 0.12.0
2:49:24 PM: Using execjs 2.7.0
2:49:24 PM: Using filesize 0.2.0
2:49:24 PM: Using forwardable-extended 2.6.0
2:49:24 PM: Using gemoji 3.0.1
2:49:24 PM: Using html-pipeline 2.12.0
2:49:24 PM: Using mercenary 0.3.6
2:49:24 PM: Using parallel 1.18.0
2:49:24 PM: Using rainbow 3.0.0
2:49:24 PM: Using typhoeus 1.3.1
2:49:24 PM: Using yell 2.2.0
2:49:24 PM: Using html-proofer 3.13.0
2:49:24 PM: Using rb-fsevent 0.10.3
2:49:24 PM: Using rb-inotify 0.10.0
2:49:24 PM: Using sass-listen 4.0.0
2:49:24 PM: Using sass 3.7.4
2:49:24 PM: Using jekyll-sass-converter 1.5.2
2:49:24 PM: Using listen 3.2.0
2:49:24 PM: Using jekyll-watch 2.2.1
2:49:24 PM: Using kramdown 1.17.0
2:49:24 PM: Using liquid 4.0.3
2:49:24 PM: Using pathutil 0.16.2
2:49:24 PM: Using rouge 3.12.0
2:49:24 PM: Using safe_yaml 1.0.5
2:49:24 PM: Using jekyll 3.8.6
2:49:24 PM: Using progressbar 1.10.1
2:49:24 PM: Using verbal_expressions 0.1.5
2:49:24 PM: Using jekyll-algolia 1.5.0
2:49:24 PM: Using posix-spawn 0.3.13
2:49:24 PM: Using jekyll-last-modified-at 1.1.0
2:49:24 PM: Using jekyll-mentions 1.5.1
2:49:24 PM: Using octicons 9.2.0
2:49:24 PM: Using jekyll-octicons 9.2.0
2:49:24 PM: Using jekyll-toc 0.12.2
2:49:24 PM: Using jemoji 0.11.1
2:49:24 PM: Using uglifier 4.2.0
2:49:24 PM: Bundle complete! 11 Gemfile dependencies, 57 gems now installed.
2:49:24 PM: Bundled gems are installed into `/opt/build/cache/bundle`
2:49:24 PM: Gem bundle installed
2:49:24 PM: Started restoring cached go cache
2:49:24 PM: Finished restoring cached go cache
2:49:24 PM: unset GOOS;
2:49:24 PM: unset GOARCH;
2:49:24 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
2:49:24 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
2:49:24 PM: go version >&2;
2:49:24 PM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
2:49:24 PM: go version go1.12 linux/amd64
2:49:24 PM: Installing missing commands
2:49:24 PM: Verify run directory
2:49:24 PM: Executing user command: jekyll build && jekyll algolia
2:49:25 PM: Configuration file: /opt/build/repo/_config.yml
2:49:26 PM:             Source: /opt/build/repo
2:49:26 PM:        Destination: _site
2:49:26 PM:  Incremental build: disabled. Enable with --incremental
2:49:26 PM:       Generating...
2:49:27 PM: ...found logo jpg /projects/DecentralizedOxalisGenomeProject/logo.jpg
2:49:27 PM: ...found logo png /projects/KombuchaGenomics/logo.png
2:49:27 PM: ...found logo png /projects/Metafluidics/logo.png
2:49:27 PM: ...found logo png /projects/OYEP/logo.png
2:49:27 PM: ...found logo png /projects/OpenInsulin/logo.png
2:49:27 PM: ...found logo png /projects/OpenPcr/logo.png
2:49:27 PM: ...found logo png /projects/OpenQpcr/logo.png
2:49:27 PM: ...found logo jpg /projects/RealVeganCheese/logo.jpg
2:49:27 PM: ...found logo png /projects/diybiosphere/logo.png
2:49:27 PM: ...found logo jpg /startups/AlgiKnit/logo.jpg
2:49:27 PM: ...found logo png /startups/Allevi/logo.png...found logo jpg /startups/Allevi/logo.jpg
2:49:27 PM: ...found logo jpg /startups/AmidBiosciences/logo.jpg
2:49:27 PM: ...found logo png /startups/ChaiBio/logo.png
2:49:27 PM: ...found logo png /startups/Kilobaser/logo.png
2:49:27 PM: ...found logo png /startups/OpenBionics/logo.png
2:49:27 PM: ...found logo jpg /startups/OpenTrons/logo.jpg
2:49:27 PM: ...found logo png /startups/feles/logo.png
2:49:27 PM: ...found logo png /labs/ArtScienceBlr/logo.png
2:49:27 PM: ...found logo png /labs/BioArtLaboratories/logo.png
2:49:27 PM: ...found logo jpg /labs/BioDidact/logo.jpg
2:49:27 PM: ...found logo png /labs/BioFoundry/logo.png
2:49:27 PM: ...found logo png /labs/BioMakersLabPeru/logo.png
2:49:27 PM: ...found logo png /labs/BioNyfiken/logo.png
2:49:27 PM: ...found logo png /labs/BioQuisitive/logo.png
2:49:27 PM: ...found logo jpg
2:49:27 PM: /labs/BioTehna/logo.jpg
2:49:27 PM: ...found logo png /labs/BioTown/logo.png
2:49:27 PM: ...found logo png /labs/Biocurious/logo.png
2:49:27 PM: ...found logo png /labs/BiologiGaragen/logo.png
2:49:27 PM: ...found logo png /labs/Bioscope/logo.png
2:49:27 PM: ...found logo jpg /labs/BiotechWithoutBorders/logo.jpg
2:49:27 PM: ...found logo png /labs/BosLab/logo.png
2:49:27 PM: ...found logo png /labs/BricoBio/logo.png
2:49:27 PM: ...found logo png /labs/BrmBiolab/logo.png
2:49:27 PM: ...found logo png /labs/Bugss/logo.png
2:49:27 PM: ...found logo png /labs/ChiTownBio/logo.png
2:49:27 PM: ...found logo png
2:49:27 PM: /labs/CounterCultureLabs/logo.png
2:49:27 PM: ...found logo png /labs/DIYBioBCN/logo.png
2:49:27 PM: ...found logo jpg /labs/DIYbioToronto/logo.jpg
2:49:27 PM: ...found logo png /labs/DenverBiolabs/logo.png
2:49:27 PM: ...found logo jpg /labs/FLab/logo.jpg
2:49:27 PM: ...found logo png /labs/GaudiLabs/logo.png
2:49:27 PM: ...found logo png /labs/Genspace/logo.png
2:49:27 PM: ...found logo png /labs/Hackuarium/logo.png
2:49:27 PM: ...found logo png /labs/HiveBio/logo.png
2:49:27 PM: ...found logo png /labs/IndieLab/logo.png
2:49:27 PM: ...found logo jpg /labs/LEprouvette/logo.jpg
2:49:27 PM: ...found logo png /labs/LaPaillase/logo.png
2:49:27 PM: ...found logo png /labs/LaPaillaseSaone/logo.png
2:49:27 PM: ...found logo png /labs/LifePatch/logo.png
2:49:27 PM: ...found logo png /labs/LondonBiohackerspace/logo.png
2:49:27 PM: ...found logo png /labs/MadLabBiolab/logo.png...found logo png /labs/OpenBioLabGraz/logo.png
2:49:27 PM: ...found logo png /labs/OpenBioLabs/logo.png
2:49:27 PM: ...found logo png /labs/OpenScienceNet/logo.png
2:49:27 PM: ...found logo png /labs/OttawaBioScience/logo.png
2:49:27 PM: ...found logo jpg /labs/Reagent/logo.jpg
2:49:27 PM: ...found logo png /labs/SoundBioLab/logo.png
2:49:27 PM: ...found logo png /labs/TheLAb/logo.png
2:49:27 PM: ...found logo png /labs/TrySciBiolab/logo.png
2:49:27 PM: ...found logo jpg /incubators/BerkleyBiolabs/logo.jpg
2:49:27 PM: ...found logo jpg /incubators/BioRiiDL/logo.jpg
2:49:27 PM: ...found logo png /incubators/Hax/logo.png
2:49:27 PM: ...found logo png /incubators/IndieBio/logo.png
2:49:27 PM: ...found logo png /incubators/RebelBio/logo.png
2:49:27 PM: ...found logo png /incubators/ToolFoundry/logo.png
2:49:27 PM: ...found logo jpg /groups/BeInToBiohacking/logo.jpg
2:49:27 PM: ...found logo png /groups/Biogarage/logo.png
2:49:27 PM: ...found logo png /groups/BiohackersNYC/logo.png
2:49:27 PM: ...found logo png /groups/CapCityBiohackers/logo.png
2:49:27 PM: ...found logo jpg /groups/ChicagoBiohacking/logo.jpg
2:49:27 PM: ...found logo jpg /groups/DIYbioBelgium/logo.jpg
2:49:27 PM: ...found logo png /groups/DIYbioBuenosAires/logo.png
2:49:27 PM: ...found logo png /groups/DIYbioGroningen/logo.png
2:49:27 PM: ...found logo jpg /groups/DIYbioMexico/logo.jpg
2:49:27 PM: ...found logo jpg /groups/GeneGarage/logo.jpg
2:49:27 PM: ...found logo png /groups/Hackstronauts/logo.png...found logo jpg /groups/LeBiomeHackLab/logo.jpg
2:49:27 PM: ...found logo png /groups/MNDIYbio/logo.png...found logo jpg /groups/MikroBiomik/logo.jpg
2:49:27 PM: ...found logo png /networks/DIYbio.org/logo.png
2:49:27 PM: ...found logo png /networks/NYCBio/logo.png
2:49:27 PM: ...found logo png /networks/OpenBioMedicalInitiative/logo.png
2:49:27 PM: ...found logo png /events/BBKOpenScience/logo.png
2:49:27 PM: ...found logo jpg /events/BioDesignChallenge/logo.jpg
2:49:27 PM: ...found logo png /events/GlobalCommunityBioSummit/logo.png
2:49:27 PM: ...found logo jpg /events/Igem/logo.jpg
2:49:39 PM:                     done in 13.635 seconds.
2:49:39 PM:  Auto-regeneration: disabled. Use --watch to enable.
2:49:40 PM: Configuration file: /opt/build/repo/_config.yml
2:49:40 PM: Processing site...
2:49:42 PM: ...found logo jpg /projects/DecentralizedOxalisGenomeProject/logo.jpg
2:49:42 PM: ...found logo png /projects/KombuchaGenomics/logo.png...found logo png /projects/Metafluidics/logo.png...found logo png /projects/OYEP/logo.png
2:49:42 PM: ...found logo png /projects/OpenInsulin/logo.png
2:49:42 PM: ...found logo png /projects/OpenPcr/logo.png
2:49:42 PM: ...found logo png /projects/OpenQpcr/logo.png
2:49:42 PM: ...found logo jpg /projects/RealVeganCheese/logo.jpg
2:49:42 PM: ...found logo png /projects/diybiosphere/logo.png
2:49:42 PM: ...found logo jpg /startups/AlgiKnit/logo.jpg
2:49:42 PM: ...found logo png /startups/Allevi/logo.png...found logo jpg /startups/Allevi/logo.jpg
2:49:42 PM: ...found logo jpg /startups/AmidBiosciences/logo.jpg
2:49:42 PM: ...found logo png /startups/ChaiBio/logo.png
2:49:42 PM: ...found logo png /startups/Kilobaser/logo.png
2:49:42 PM: ...found logo png /startups/OpenBionics/logo.png
2:49:42 PM: ...found logo jpg /startups/OpenTrons/logo.jpg
2:49:42 PM: ...found logo png /startups/feles/logo.png
2:49:42 PM: ...found logo png /labs/ArtScienceBlr/logo.png
2:49:42 PM: ...found logo png /labs/BioArtLaboratories/logo.png...found logo jpg /labs/BioDidact/logo.jpg
2:49:42 PM: ...found logo png /labs/BioFoundry/logo.png...found logo png /labs/BioMakersLabPeru/logo.png
2:49:42 PM: ...found logo png /labs/BioNyfiken/logo.png...found logo png
2:49:42 PM: /labs/BioQuisitive/logo.png
2:49:42 PM: ...found logo jpg /labs/BioTehna/logo.jpg...found logo png /labs/BioTown/logo.png
2:49:42 PM: ...found logo png
2:49:42 PM: /labs/Biocurious/logo.png
2:49:42 PM: ...found logo png /labs/BiologiGaragen/logo.png
2:49:42 PM: ...found logo png /labs/Bioscope/logo.png
2:49:42 PM: ...found logo jpg /labs/BiotechWithoutBorders/logo.jpg
2:49:42 PM: ...found logo png /labs/BosLab/logo.png
2:49:42 PM: ...found logo png /labs/BricoBio/logo.png
2:49:42 PM: ...found logo png /labs/BrmBiolab/logo.png
2:49:42 PM: ...found logo png /labs/Bugss/logo.png
2:49:42 PM: ...found logo png /labs/ChiTownBio/logo.png
2:49:42 PM: ...found logo png /labs/CounterCultureLabs/logo.png
2:49:42 PM: ...found logo png /labs/DIYBioBCN/logo.png
2:49:42 PM: ...found logo jpg /labs/DIYbioToronto/logo.jpg
2:49:42 PM: ...found logo png /labs/DenverBiolabs/logo.png
2:49:42 PM: ...found logo jpg /labs/FLab/logo.jpg
2:49:42 PM: ...found logo png /labs/GaudiLabs/logo.png
2:49:42 PM: ...found logo png /labs/Genspace/logo.png
2:49:42 PM: ...found logo png /labs/Hackuarium/logo.png
2:49:42 PM: ...found logo png /labs/HiveBio/logo.png
2:49:42 PM: ...found logo png /labs/IndieLab/logo.png
2:49:42 PM: ...found logo jpg /labs/LEprouvette/logo.jpg
2:49:42 PM: ...found logo png /labs/LaPaillase/logo.png
2:49:42 PM: ...found logo png /labs/LaPaillaseSaone/logo.png...found logo png /labs/LifePatch/logo.png
2:49:42 PM: ...found logo png /labs/LondonBiohackerspace/logo.png
2:49:42 PM: ...found logo png /labs/MadLabBiolab/logo.png...found logo png /labs/OpenBioLabGraz/logo.png
2:49:42 PM: ...found logo png /labs/OpenBioLabs/logo.png
2:49:42 PM: ...found logo png /labs/OpenScienceNet/logo.png
2:49:42 PM: ...found logo png /labs/OttawaBioScience/logo.png
2:49:42 PM: ...found logo jpg /labs/Reagent/logo.jpg
2:49:42 PM: ...found logo png /labs/SoundBioLab/logo.png
2:49:42 PM: ...found logo png /labs/TheLAb/logo.png
2:49:42 PM: ...found logo png /labs/TrySciBiolab/logo.png
2:49:42 PM: ...found logo jpg /incubators/BerkleyBiolabs/logo.jpg
2:49:42 PM: ...found logo jpg /incubators/BioRiiDL/logo.jpg
2:49:42 PM: ...found logo png /incubators/Hax/logo.png
2:49:42 PM: ...found logo png /incubators/IndieBio/logo.png
2:49:42 PM: ...found logo png
2:49:42 PM: /incubators/RebelBio/logo.png
2:49:42 PM: ...found logo png /incubators/ToolFoundry/logo.png
2:49:42 PM: ...found logo jpg /groups/BeInToBiohacking/logo.jpg
2:49:42 PM: ...found logo png /groups/Biogarage/logo.png
2:49:42 PM: ...found logo png /groups/BiohackersNYC/logo.png
2:49:42 PM: ...found logo png /groups/CapCityBiohackers/logo.png
2:49:42 PM: ...found logo jpg /groups/ChicagoBiohacking/logo.jpg
2:49:42 PM: ...found logo jpg /groups/DIYbioBelgium/logo.jpg
2:49:42 PM: ...found logo png /groups/DIYbioBuenosAires/logo.png
2:49:42 PM: ...found logo png /groups/DIYbioGroningen/logo.png
2:49:42 PM: ...found logo jpg /groups/DIYbioMexico/logo.jpg
2:49:42 PM: ...found logo jpg /groups/GeneGarage/logo.jpg
2:49:42 PM: ...found logo png /groups/Hackstronauts/logo.png...found logo jpg /groups/LeBiomeHackLab/logo.jpg
2:49:42 PM: ...found logo png /groups/MNDIYbio/logo.png
2:49:42 PM: ...found logo jpg /groups/MikroBiomik/logo.jpg
2:49:42 PM: ...found logo png /networks/DIYbio.org/logo.png
2:49:42 PM: ...found logo png /networks/NYCBio/logo.png...found logo png /networks/OpenBioMedicalInitiative/logo.png
2:49:42 PM: ...found logo png /events/BBKOpenScience/logo.png...found logo jpg /events/BioDesignChallenge/logo.jpg
2:49:42 PM: ...found logo png /events/GlobalCommunityBioSummit/logo.png
2:49:42 PM: ...found logo jpg /events/Igem/logo.jpg
2:49:42 PM: Progress: |
2:49:42 PM: ==
2:49:42 PM: ==
2:49:42 PM: ==
2:49:42 PM: ==
2:49:42 PM: ==
2:49:42 PM: ==
2:49:42 PM: =
2:49:42 PM: ==
2:49:42 PM: ===
2:49:42 PM: =
2:49:42 PM: ==
2:49:42 PM: ==
2:49:42 PM: ==
2:49:42 PM: ==
2:49:42 PM: ==
2:49:42 PM: ==
2:49:42 PM: ==
2:49:42 PM: ==
2:49:42 PM: =
2:49:42 PM: ==
2:49:42 PM: ==
2:49:42 PM: ==
2:49:42 PM: ==
2:49:42 PM: ===
2:49:42 PM: ==
2:49:42 PM: ==
2:49:42 PM: ===
2:49:42 PM: ===
2:49:42 PM: ==
2:49:42 PM: =
2:49:42 PM: ==
2:49:42 PM: ==
2:49:42 PM: ===
2:49:42 PM: =|
2:49:42 PM: Progress: |
2:49:42 PM: =
2:49:42 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:43 PM: =
2:49:44 PM: =
2:49:44 PM: =
2:49:44 PM: =
2:49:44 PM: =
2:49:44 PM: =
2:49:44 PM: =
2:49:44 PM: =
2:49:44 PM: =
2:49:44 PM: =
2:49:44 PM: =
2:49:44 PM: =
2:49:44 PM: =
2:49:44 PM: =
2:49:44 PM: =
2:49:44 PM: =
2:49:44 PM: =
2:49:44 PM: =
2:49:44 PM: =
2:49:44 PM: =
2:49:44 PM: =
2:49:45 PM: =
2:49:45 PM: =
2:49:45 PM: =
2:49:45 PM: =
2:49:45 PM: =
2:49:45 PM: =
2:49:45 PM: =
2:49:45 PM: =
2:49:45 PM: =
2:49:45 PM: =
2:49:45 PM: =
2:49:45 PM: =
2:49:45 PM: =
2:49:45 PM: =
2:49:45 PM: =
2:49:45 PM: =
2:49:45 PM: =
2:49:45 PM: =
2:49:45 PM: =
2:49:45 PM: =
2:49:45 PM: =
2:49:45 PM: =
2:49:46 PM: =|
2:49:46 PM: Settings are already up to date.
2:49:46 PM: Getting list of existing records
2:49:46 PM: Content is already up to date.
2:49:46 PM: ✔ Indexing complete
2:49:46 PM: Skipping functions preparation step: no functions directory set
2:49:46 PM: Caching artifacts
2:49:46 PM: Started saving ruby gems
2:49:46 PM: Finished saving ruby gems
2:49:46 PM: Started saving pip cache
2:49:46 PM: Finished saving pip cache
2:49:46 PM: Started saving emacs cask dependencies
2:49:46 PM: Finished saving emacs cask dependencies
2:49:46 PM: Started saving maven dependencies
2:49:46 PM: Finished saving maven dependencies
2:49:46 PM: Started saving boot dependencies
2:49:46 PM: Finished saving boot dependencies
2:49:46 PM: Started saving go dependencies
2:49:46 PM: Finished saving go dependencies
2:49:46 PM: Build script success
2:49:46 PM: Starting to deploy site from '_site/'
2:49:46 PM: Creating deploy tree asynchronously
2:49:48 PM: 1 new files to upload
2:49:48 PM: 0 new functions to upload
2:49:49 PM: Starting post processing
2:49:51 PM: Post processing done
2:49:51 PM: Site is live
2:50:30 PM: Finished processing build request in 1m29.94835701s

@100ideas
Copy link
Member

also, it sounds like jekyll-algolia is stagnating and may not be updated to be compatible with jekyll v4 which was just released.

mmistakes/minimal-mistakes#2257

let's just switch to gatsby already.

@100ideas 100ideas added the bug label Oct 21, 2019
@100ideas
Copy link
Member

100ideas commented Oct 21, 2019

@sjamesparsonsjr I think I figured out the cause of this bug.

the algolia indexing script was running on both production and staging builds. if the logo wasn't exactly the same for both, then sometimes the algolia index would have incorrect information in it (updating from staging) visible at master.

to fix it, I created a netlify.toml file at root that only runs the jekyll-algolia plugin (and thus updates search indexes) if the deploy is from the master branch.

so when previewing non-master changes, don't expect the search index to work properly. If this problematic, we can set up a second algolia index just for staging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants