Skip to content

Conversation

@klamike
Copy link
Contributor

@klamike klamike commented Jul 6, 2025

  1. Replace logo with SVG version to match the current JuMP logo
    2. Adds an example with Convex.jl (it's just too cool not to show 😄)
    3. Switch from ECOS to SCS since the Convex.jl example needs DualExponentialCone

Happy to make any changes!

Logo generator

The logo generator is based on JuMP.jl/docs/src/assets/logo_constructor.jl. Run the following from the root of a JuMP.jl clone:

using Luxor

include("docs/src/assets/logo_constructor.jl")

function dualization_logo(; filename::String, color::String = "#333")
    Drawing(150, 150, filename)
    @layer begin
        translate(O)
        @layer begin
            translate(75, 75)
            transform([1 0 0 -1 0 0])
            transform([-1 0 0 1 0 0])
            translate(-75, -75)
            translate(10, 10)
            _logo_no_text(; color)
        end
    end
    finish()
    dualization_license(filename)
    return
end

function dualization_license(filename)
    header = """
    <svg xmlns:svg="http://www.w3.org/2000/svg"
      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
      xmlns:cc="http://creativecommons.org/ns#"
      xmlns:dc="http://purl.org/dc/elements/1.1/"
    """
    footer = """
    <metadata
        id="metadata21">
        <rdf:RDF>
            <cc:Work
                rdf:about="">
            <dc:creator>
                <cc:Agent>
                <dc:title>Dualization.jl</dc:title>
                </cc:Agent>
            </dc:creator>
            <dc:title>Logo for Dualization.jl</dc:title>
            <cc:license
                rdf:resource="http://creativecommons.org/licenses/by/4.0/" />
            <dc:description>Logo for Dualization.jl, an automatic dualization feature for MathOptInterface.jl and JuMP.</dc:description>
            <dc:date>June 2025</dc:date>
            </cc:Work>
            <cc:License
                rdf:about="http://creativecommons.org/licenses/by/4.0/">
            <cc:permits
                rdf:resource="http://creativecommons.org/ns#Reproduction" />
            <cc:permits
                rdf:resource="http://creativecommons.org/ns#Distribution" />
            <cc:requires
                rdf:resource="http://creativecommons.org/ns#Notice" />
            <cc:requires
                rdf:resource="http://creativecommons.org/ns#Attribution" />
            <cc:permits
                rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
            </cc:License>
        </rdf:RDF>
    </metadata>
    </svg>
    """
    file = read(filename, String)
    file = replace(file, "<svg " => header)
    file = replace(file, "</svg>" => footer)
    write(filename, file)
    return
end

dualization_logo(; filename = "dualization.svg")

@codecov
Copy link

codecov bot commented Jul 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.31%. Comparing base (397302e) to head (495176b).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #205   +/-   ##
=======================================
  Coverage   94.31%   94.31%           
=======================================
  Files          14       14           
  Lines         756      756           
=======================================
  Hits          713      713           
  Misses         43       43           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

klamike added 2 commits July 5, 2025 22:07
This reverts commit 6a693a5.
This reverts commit 0e3ccda.
@klamike
Copy link
Contributor Author

klamike commented Jul 6, 2025

Turns out https://jump.dev/Convex.jl/stable/examples/general_examples/dualization/ already exists! So this PR is actually just a new logo

@klamike klamike changed the title Update docs Update logo Jul 6, 2025
@odow odow merged commit 12310ce into jump-dev:master Jul 6, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants